forked from pool/python-canonicaljson
exclude tests on older SLE+Leap due to
# ImportError: cannot import name inf OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-canonicaljson?expand=0&rev=16
This commit is contained in:
@@ -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%{?sle_version} > 150200
|
||||
%python_exec -m unittest discover
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if !%{with test}
|
||||
%files %{python_files}
|
||||
|
||||
Reference in New Issue
Block a user