Hello community,
here is the log from the commit of package python-immutables for
openSUSE:Factory checked in at 2020-12-12 20:29:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-immutables (Old)
and /work/SRC/openSUSE:Factory/.python-immutables.new.2328 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-immutables"
Sat Dec 12 20:29:02 2020 rev:5 rq:853620 version:0.14
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-immutables/python-immutables.changes
2020-10-29 09:47:47.452139414 +0100
+++
/work/SRC/openSUSE:Factory/.python-immutables.new.2328/python-immutables.changes
2020-12-12 20:31:25.049792765 +0100
@@ -1,0 +2,6 @@
+Mon Dec 7 15:34:37 UTC 2020 - Matej Cepl <[email protected]>
+
+- Add skip_32bit_tests.patch (gh#MagicStack/immutables#53) to skip tests
+ which fail on 32bit architectures.
+
+-------------------------------------------------------------------
New:
----
skip_32bit_tests.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-immutables.spec ++++++
--- /var/tmp/diff_new_pack.XWA7fj/_old 2020-12-12 20:31:25.669793412 +0100
+++ /var/tmp/diff_new_pack.XWA7fj/_new 2020-12-12 20:31:25.673793416 +0100
@@ -25,6 +25,9 @@
License: Apache-2.0
URL: https://github.com/MagicStack/immutables
Source:
https://files.pythonhosted.org/packages/source/i/immutables/immutables-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM skip_32bit_tests.patch gh#MagicStack/immutables#53
[email protected]
+# skip failing tests on 32bit architectures
+Patch0: skip_32bit_tests.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
@@ -35,7 +38,8 @@
Immutable collections for Python.
%prep
-%setup -q -n immutables-%{version}
+%autosetup -p1 -n immutables-%{version}
+
sed -i 's/\.system//' setup.py
%build
@@ -49,12 +53,7 @@
}
%check
-# Fails on 32bit for some reason
-%ifarch %ix86
-rm -v tests/test_none_keys.py
-%endif
-
-%python_exec setup.py test
+%pyunittest discover -v
%files %{python_files}
%doc README.rst
++++++ skip_32bit_tests.patch ++++++
--- a/tests/test_none_keys.py
+++ b/tests/test_none_keys.py
@@ -1,8 +1,10 @@
+import sys
import unittest
from immutables.map import map_hash, map_mask, Map as PyMap
-from immutables._testutils import * # NoQA
+from immutables._testutils import HashKey # NoQA
+is_32bits = sys.maxsize <= 2**32 # 32bit-dness
none_hash = map_hash(None)
assert(none_hash != 1)
@@ -35,6 +37,8 @@ class NoneCollision(HashKey):
class BaseNoneTest:
Map = None
+ @unittest.skipIf(is_32bits,
+ "fail on 32bit arch, gh#MagicStack/immutables#53")
def test_none_collisions(self):
collisions = [NoneCollision('a', level) for level in range(7)]
indices = [map_mask(none_hash, shift) for shift in range(0, 32, 5)]
_______________________________________________
openSUSE Commits mailing list -- [email protected]
To unsubscribe, email [email protected]
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives:
https://lists.opensuse.org/archives/list/[email protected]