Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore new deprecation message from setuptools. #7454

Merged
merged 1 commit into from
Aug 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,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
Loading