From f769d5bdd869a219cd7507ed6479d21fc4b68d6fa2a9912ebce786ed131cadb8 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 22 Mar 2021 10:48:08 +0000 Subject: [PATCH] Accepting request 880167 from home:bnavigator:branches:devel:languages:python - Skip failing stdlib roundtrip test on python39 gh#berkerpeksag/astor#196 OBS-URL: https://build.opensuse.org/request/show/880167 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astor?expand=0&rev=20 --- python-astor.changes | 6 ++++++ python-astor.spec | 9 ++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) 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