diff --git a/python-canonicaljson.changes b/python-canonicaljson.changes index ec466c4..5153515 100644 --- a/python-canonicaljson.changes +++ b/python-canonicaljson.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Apr 29 11:09:25 UTC 2021 - Oliver Kurz + +- Exclude tests on older SLE+Leap due to "ImportError: cannot import name inf" + ------------------------------------------------------------------- Tue Sep 8 20:32:44 UTC 2020 - Marcus Rueckert diff --git a/python-canonicaljson.spec b/python-canonicaljson.spec index 52ad181..54ac5fd 100644 --- a/python-canonicaljson.spec +++ b/python-canonicaljson.spec @@ -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}