14
0

Accepting request 889399 from devel:languages:python

Exclude tests on older SLE+Leap due to "ImportError: cannot import name inf"

OBS-URL: https://build.opensuse.org/request/show/889399
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-canonicaljson?expand=0&rev=8
This commit is contained in:
2021-04-29 20:46:42 +00:00
committed by Git OBS Bridge
2 changed files with 9 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Apr 29 11:09:25 UTC 2021 - Oliver Kurz <okurz@suse.com>
- Exclude tests on older SLE+Leap due to "ImportError: cannot import name inf"
-------------------------------------------------------------------
Tue Sep 8 20:32:44 UTC 2020 - Marcus Rueckert <mrueckert@suse.de>

View File

@@ -75,8 +75,12 @@ RFC 7159.
%check
%if %{with test}
# exclude tests on older SLE+Leap due to
# ImportError: cannot import name inf
%if 0%{?suse_version} > 1500 || 0%{?sle_version} > 150300
%python_exec -m unittest discover
%endif
%endif
%if !%{with test}
%files %{python_files}