Hello community,
here is the log from the commit of package python-hypothesis for openSUSE:Factory checked in at 2020-05-29 21:19:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-hypothesis (Old)
and /work/SRC/openSUSE:Factory/.python-hypothesis.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-hypothesis"
Fri May 29 21:19:59 2020 rev:47 rq:808025 version:5.11.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-hypothesis/python-hypothesis.changes 2020-05-11 13:26:20.515229462 +0200
+++ /work/SRC/openSUSE:Factory/.python-hypothesis.new.3606/python-hypothesis.changes 2020-05-29 21:35:36.494333957 +0200
@@ -1,0 +2,6 @@
+Thu May 21 14:56:04 UTC 2020 - Matej Cepl
+
+- Add failing-test_array_values_are_unique_high_collision.patch
+ to avoid failing test on i586 (gh#HypothesisWorks/hypothesis#2447)
+
+-------------------------------------------------------------------
New:
----
failing-test_array_values_are_unique_high_collision.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-hypothesis.spec ++++++
--- /var/tmp/diff_new_pack.hbTW7s/_old 2020-05-29 21:35:37.174335982 +0200
+++ /var/tmp/diff_new_pack.hbTW7s/_new 2020-05-29 21:35:37.178335994 +0200
@@ -34,6 +34,9 @@
License: MPL-2.0
URL: https://github.com/HypothesisWorks/hypothesis-python
Source: https://github.com/HypothesisWorks/hypothesis/archive/hypothesis-python-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM failing-test_array_values_are_unique_high_collision.patch gh#HypothesisWorks/hypothesis#2447 mcepl@suse.com
+# Skip failing test on i586.
+Patch0: failing-test_array_values_are_unique_high_collision.patch
BuildRequires: %{python_module setuptools >= 36}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -79,6 +82,8 @@
%prep
%setup -q -n hypothesis-hypothesis-python-%{version}/hypothesis-python
+%autopatch -p1
+
# the django fails to initialize
rm -r tests/django
# do not pull in pandas as a dep in ring1; it slows down things too much
++++++ failing-test_array_values_are_unique_high_collision.patch ++++++
--- a/tests/numpy/test_gen_data.py
+++ b/tests/numpy/test_gen_data.py
@@ -13,6 +13,7 @@
#
# END HEADER
+import struct
import sys
from functools import reduce
from itertools import zip_longest
@@ -28,6 +29,7 @@ from hypothesis.strategies._internal imp
from tests.common.debug import find_any, minimal
from tests.common.utils import fails_with, flaky
+_IS_32BIT = 8 * struct.calcsize("P") == 32
ANY_SHAPE = nps.array_shapes(min_dims=0, max_dims=32, min_side=0, max_side=32)
ANY_NONZERO_SHAPE = nps.array_shapes(min_dims=0, max_dims=32, min_side=1, max_side=32)
STANDARD_TYPES = list(
@@ -361,6 +363,7 @@ def test_cannot_generate_unique_array_of
strat.example()
+@pytest.mark.skipif(_IS_32BIT, reason="Test fails on 32bit architecture.")
@given(
nps.arrays(
elements=st.just(0.0),