From b36de51a8f36849b126ba46846cbddd00cd2ba8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 30 Apr 2020 10:19:03 +0200 Subject: [PATCH] Filter lib2to3 (Pending)DeprecationWarning in testes lib2to3 is deprecated in Python 3.9: https://bugs.python.org/issue40360 Workarounds https://github.com/pypa/setuptools/issues/2081 --- changelog.d/2082.misc.rst | 2 ++ pytest.ini | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 changelog.d/2082.misc.rst diff --git a/changelog.d/2082.misc.rst b/changelog.d/2082.misc.rst new file mode 100644 index 0000000000..81ad5d5853 --- /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 `_. diff --git a/pytest.ini b/pytest.ini index b13b7f3363..479a2965ea 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