forked from pypi/warehouse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle some Deprecations (pypi#10410)
* Fix PytestCollectionWarning When collecting tests, this class raises a warning since it's named `Test*`: PytestCollectionWarning: cannot collect test class 'TestAdminFlagValues' because it has a __new__ constructor Set an attribute that informs pytest to ignore this class, and thus remove the warning. Refs: https://docs.pytest.org/en/6.2.x/example/pythoncollection.html#customizing-test-collection (last lines) Signed-off-by: Mike Fiedler <miketheman@gmail.com> * Fix PytestDeprecationWarning Current test warns: PytestDeprecationWarning: The --strict option is deprecated, use --strict-markers instead. Marked as deprecated in pytest-dev/pytest#7985 Released in pytest 6.2.0 Signed-off-by: Mike Fiedler <miketheman@gmail.com> * Fix DeprecationWarning pyramid import The import paths for these modules has changed in Pyramid 2.0, and raises warnings. There are other Pyramid 2.0 warnings, but are more involved than changing an import path, and should be addressed as another commit. Refs: Pylons/pyramid#3563 Signed-off-by: Mike Fiedler <miketheman@gmail.com> * Fix DeprecationWarning for jinja.contextfilter A few instances of this warning are raised: DeprecationWarning: 'contextfilter' is renamed to 'pass_context', the old name will be removed in Jinja 3.1. Replace the usages accordingly. Refs: pallets/jinja#1389 Signed-off-by: Mike Fiedler <miketheman@gmail.com> * Fix DeprecationWarning for jinja.Markup The pass-through import of markup.Markup() has been deprecated in Jinja 3.0, and will be removed in Jinja 3.1. Warnings raised: DeprecationWarning: 'jinja2.Markup' is deprecated and will be removed in Jinja 3.1. Import 'markupsafe.Markup' instead. Replace the import paths. TODO: Determine if the requirements/main.in needs to be changed as well. Refs: pallets/jinja#1391 Signed-off-by: Mike Fiedler <miketheman@gmail.com> * Fix DeprecationWarning for babel.numbers.from_number Warnings raised: DeprecationWarning: Use babel.numbers.format_decimal() instead. Deprecated since 2.6.0 Refs: python-babel/babel#538 Signed-off-by: Mike Fiedler <miketheman@gmail.com> Co-authored-by: Dustin Ingram <di@users.noreply.github.com>
- Loading branch information
1 parent
4b30a04
commit d0eedd7
Showing
11 changed files
with
19 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters