From 92dd3f33b7c852f3d7a37d47c8d8f289f739bc95c26a78dfa1a5719f831eb948 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 19 Nov 2020 11:58:51 +0000 Subject: [PATCH] Accepting request 849146 from home:wicked:qubes-build Fix failing tests OBS-URL: https://build.opensuse.org/request/show/849146 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=138 --- python-hypothesis.changes | 8 ++++++++ python-hypothesis.spec | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/python-hypothesis.changes b/python-hypothesis.changes index 8395956..badfe2a 100644 --- a/python-hypothesis.changes +++ b/python-hypothesis.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Nov 17 18:22:29 UTC 2020 - Teemu Mannermaa + +- Fix failing tests: + * Also skip %python_clone during build of tests flavor. + * Recommend python-redis and BR python-fakeredis that are needed + for new redis based ExampleDatabase implemention. + ------------------------------------------------------------------- Wed Nov 11 12:15:41 UTC 2020 - Dirk Mueller diff --git a/python-hypothesis.spec b/python-hypothesis.spec index efefedb..562c65c 100644 --- a/python-hypothesis.spec +++ b/python-hypothesis.spec @@ -61,6 +61,7 @@ Recommends: python-pandas >= 0.19 Recommends: python-pytest >= 4.3 Recommends: python-python-dateutil >= 1.4 Recommends: python-pytz >= 2014.1 +Recommends: python-redis >= 3.0.0 BuildArch: noarch %if %{with test} # SECTION test requirements @@ -68,6 +69,7 @@ BuildRequires: %{python_module Django >= 2.2} BuildRequires: %{python_module attrs >= 19.2.0} BuildRequires: %{python_module black} BuildRequires: %{python_module dpcontracts >= 0.6.0} +BuildRequires: %{python_module fakeredis} BuildRequires: %{python_module flaky} BuildRequires: %{python_module hypothesis = %{version}} BuildRequires: %{python_module lark-parser >= 0.6.5} @@ -108,9 +110,9 @@ sed -i 's/assert (arr == 0.0)/assert np.asarray(arr == 0.0)/' tests/numpy/test_g %if !%{with test} %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%endif %python_clone -a %{buildroot}%{_bindir}/hypothesis +%endif %post %python_install_alternative hypothesis