aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--changelog.d/2082.misc.rst2
-rw-r--r--pytest.ini3
2 files changed, 5 insertions, 0 deletions
diff --git a/changelog.d/2082.misc.rst b/changelog.d/2082.misc.rst
new file mode 100644
index 00000000..81ad5d58
--- /dev/null
+++ b/changelog.d/2082.misc.rst
@@ -0,0 +1,2 @@
+Filter ``lib2to3`` ``PendingDeprecationWarning`` and ``DeprecationWarning`` in testes,
+because ``lib2to3`` is `deprecated in Python 3.9 <https://bugs.python.org/issue40360>`_.
diff --git a/pytest.ini b/pytest.ini
index b13b7f33..479a2965 100644
--- a/pytest.ini
+++ b/pytest.ini
@@ -20,3 +20,6 @@ filterwarnings =
ignore:Unicode unequal comparison failed to convert:UnicodeWarning
# https://github.com/pypa/setuptools/issues/2025
ignore:direct construction of .*Item has been deprecated:DeprecationWarning
+ # https://github.com/pypa/setuptools/issues/2081
+ ignore:lib2to3 package is deprecated:PendingDeprecationWarning
+ ignore:lib2to3 package is deprecated:DeprecationWarning