Skip to content

Commit

Permalink
Suppress LegacyVersion deprecation @ pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Aug 8, 2022
1 parent 799dc87 commit 7bf5fa4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_circular_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ def test_no_warnings(import_path: str) -> None:
# https://github.com/benoitc/gunicorn/issues/2840 for detail.
"-W", "ignore:module 'sre_constants' is "
"deprecated:DeprecationWarning:pkg_resources._vendor.pyparsing",
# Also caused by `gunicorn.util` importing `pkg_resources`:
"-W", "ignore:Creating a LegacyVersion has been deprecated and "
"will be removed in the next major release:"
"DeprecationWarning:",
"-c", f"import {import_path!s}",
# fmt: on
)
Expand Down

0 comments on commit 7bf5fa4

Please sign in to comment.