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
This commit is contained in:
Dirk Mueller 2021-03-22 10:48:08 +00:00 committed by Git OBS Bridge
parent ea137e56be
commit f769d5bdd8
2 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Mar 19 19:13:12 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Skip failing stdlib roundtrip test on python39
gh#berkerpeksag/astor#196
-------------------------------------------------------------------
Mon Jun 1 09:54:30 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -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