Skip to content

Commit

Permalink
Ignore new deprecation message from setuptools. (#7454)
Browse files Browse the repository at this point in the history
(cherry picked from commit 878ac7d)
  • Loading branch information
tjni authored and patchback[bot] committed Aug 3, 2023
1 parent c0ceeb5 commit f0f040f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ filterwarnings =
# `gunicorn.util`. Hopefully, it'll get fixed in the future. See
# https://github.com/benoitc/gunicorn/issues/2840 for detail.
ignore:module 'sre_constants' is deprecated:DeprecationWarning:pkg_resources._vendor.pyparsing
# Deprecation warning emitted by setuptools v67.5.0+ triggered by importing
# `gunicorn.util`.
ignore:pkg_resources is deprecated as an API:DeprecationWarning
# The deprecation warning below is happening under Python 3.11 and
# is fixed by https://github.com/certifi/python-certifi/pull/199. It
# can be dropped with the next release of `certify`, specifically
Expand Down
4 changes: 4 additions & 0 deletions tests/test_circular_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ def test_no_warnings(import_path: str) -> None:
"-W", "ignore:Creating a LegacyVersion has been deprecated and "
"will be removed in the next major release:"
"DeprecationWarning:",
# Deprecation warning emitted by setuptools v67.5.0+ triggered by importing
# `gunicorn.util`.
"-W", "ignore:pkg_resources is deprecated as an API:"
"DeprecationWarning",
"-c", f"import {import_path!s}",
# fmt: on
)
Expand Down

0 comments on commit f0f040f

Please sign in to comment.