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.
chore: handle more warnings in test suite (pypi#10547)
* chore: replace deprecated scalar method SQLAlchemy 1.4.x deprecated the `.as_scalar()` method and replaced it with `.scalar_subquery()` and issued a `SADeprecationWarning`. Refs: https://docs.sqlalchemy.org/en/14/changelog/changelog_14.html#change-f413ff8c13a1fb7d766bfa16dfcdfbf1 Signed-off-by: Mike Fiedler <miketheman@gmail.com> * test: ignore InsecureStorageWarning When another class was added, it wasn't excluded from the warnings report. Refs: pypi#9792 Original ignore: pypi#4360 Signed-off-by: Mike Fiedler <miketheman@gmail.com> * test: ignore CIText warnings in test output The updated SQLAlchemy library now emits 2,000+ warnings for CIText(). I've opened an issue on the responsible repo. Refs: mahmoudimus/sqlalchemy-citext#25 Signed-off-by: Mike Fiedler <miketheman@gmail.com> * test: filter out known legacy behavior in test The test case knowingly creates invalid versions, and the code handles them by performing some extra validation, and throws the error. Suppress the warnings for creating `LegacyVersion`. Signed-off-by: Mike Fiedler <miketheman@gmail.com> * test: filter out SAWarning for invalidation The collections used in the test case are intentionally being modified. Signed-off-by: Mike Fiedler <miketheman@gmail.com> Co-authored-by: Dustin Ingram <di@users.noreply.github.com>
- Loading branch information
1 parent
3cd60d1
commit d89d523
Showing
5 changed files
with
10 additions
and
3 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