diff options
| author | Miro Hrončok <miro@hroncok.cz> | 2020-04-30 10:19:03 +0200 |
|---|---|---|
| committer | Miro Hrončok <miro@hroncok.cz> | 2020-04-30 10:25:58 +0200 |
| commit | b36de51a8f36849b126ba46846cbddd00cd2ba8f (patch) | |
| tree | 2389d5d8b42e921ed4c37e9ae4f16c8d27d6a281 | |
| parent | 92ca9eab30e1aececf4243d9a928cfe63f7dcfc9 (diff) | |
| download | python-setuptools-git-b36de51a8f36849b126ba46846cbddd00cd2ba8f.tar.gz | |
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
| -rw-r--r-- | changelog.d/2082.misc.rst | 2 | ||||
| -rw-r--r-- | pytest.ini | 3 |
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>`_. @@ -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 |
