diff --git a/python-astor.changes b/python-astor.changes index 426e1d6..28a3f28 100644 --- a/python-astor.changes +++ b/python-astor.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Mar 19 19:13:12 UTC 2021 - Ben Greiner + +- Skip failing stdlib roundtrip test on python39 + gh#berkerpeksag/astor#196 + ------------------------------------------------------------------- Mon Jun 1 09:54:30 UTC 2020 - Tomáš Chvátal diff --git a/python-astor.spec b/python-astor.spec index d715332..c81517d 100644 --- a/python-astor.spec +++ b/python-astor.spec @@ -1,7 +1,7 @@ # # spec file for package python-astor # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,13 +28,14 @@ URL: https://github.com/berkerpeksag/astor Source: https://github.com/berkerpeksag/astor/archive/%{version}.tar.gz#/astor-%{version}.tar.gz # https://github.com/berkerpeksag/astor/pull/177 Patch0: remove_nose.patch -BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch # SECTION test requirements +BuildRequires: %{python_module pytest} %if %{with python2} +# The tests use it internally, even when called from pytest-2 BuildRequires: python-unittest2 %endif # /SECTION @@ -81,7 +82,9 @@ chmod a-x astor/rtrip.py %python_expand chmod 755 %{buildroot}%{$python_sitelib}/astor/rtrip.py %check -%pytest tests +# https://github.com/berkerpeksag/astor/issues/196 +python39_donttest="test_convert_stdlib" +%pytest tests ${$python_donttest:+ -k "not (${$python_donttest})"} %files %{python_files} %doc AUTHORS README.rst docs/*.rst