Filter lib2to3 (Pending)DeprecationWarning in testes

lib2to3 is deprecated in Python 3.9: https://bugs.python.org/issue40360

Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1829716
This commit is contained in:
Miro Hrončok 2020-04-30 10:27:17 +02:00
parent 1bbe4f8488
commit e69d8c0036
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,11 @@
diff --git a/pytest.ini b/pytest.ini
index 825dbe6..40efb05 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

View File

@ -25,6 +25,9 @@ License: MIT and (BSD or ASL 2.0)
URL: https://pypi.python.org/pypi/%{srcname} URL: https://pypi.python.org/pypi/%{srcname}
Source0: %{pypi_source %{srcname} %{version} zip} Source0: %{pypi_source %{srcname} %{version} zip}
# https://github.com/pypa/setuptools/issues/2081
Patch1: filter-lib2to3-deprecation-warnings.patch
BuildArch: noarch BuildArch: noarch
BuildRequires: gcc BuildRequires: gcc