summary refs log tree commit diff
path: root/pkgs/development/python-modules/aiohttp/setuptools-67.5.0-compatibility.diff
blob: 2f75b6b4c1363f1e92a3ae92277bbf21004d5ca4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
diff --git a/setup.cfg b/setup.cfg
index 6944b7e2..dfa65d69 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -128,6 +128,7 @@ filterwarnings =
 	ignore:Creating a LegacyVersion has been deprecated and will be removed in the next major release:DeprecationWarning::
 	ignore:module 'sre_constants' is deprecated:DeprecationWarning:pkg_resources._vendor.pyparsing
 	ignore:path is deprecated. Use files.. instead. Refer to https.//importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.:DeprecationWarning:certifi.core
+	ignore:pkg_resources is deprecated as an API:DeprecationWarning
 junit_suite_name = aiohttp_test_suite
 norecursedirs = dist docs build .tox .eggs
 minversion = 3.8.2
diff --git a/tests/test_circular_imports.py b/tests/test_circular_imports.py
index 22e5ea47..a655fd1d 100644
--- a/tests/test_circular_imports.py
+++ b/tests/test_circular_imports.py
@@ -113,6 +113,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
     )