diff --git a/hypothesis-1.10.6-tweak_timeouts.patch b/hypothesis-1.10.6-tweak_timeouts.patch new file mode 100644 index 0000000..b8ffdcf --- /dev/null +++ b/hypothesis-1.10.6-tweak_timeouts.patch @@ -0,0 +1,11 @@ +--- hypothesis-1.10.6/tests/cover/test_basic_strategy.py.tweak_timeouts 2015-08-26 15:30:18.000000000 +0700 ++++ hypothesis-1.10.6/tests/cover/test_basic_strategy.py 2015-09-01 09:09:14.265340684 +0700 +@@ -119,7 +119,7 @@ + simplify=lambda r, v: [v] + ) + +- @timeout(2) ++ @timeout(5) + @given(bad_strategy) + def oh_noes(x): + assert x != 1 diff --git a/python-hypothesis.spec b/python-hypothesis.spec index 11d776d..2d1fb8a 100644 --- a/python-hypothesis.spec +++ b/python-hypothesis.spec @@ -8,6 +8,8 @@ Summary: A library for property based testing License: MPLv2.0 URL: https://github.com/DRMacIver/hypothesis Source0: https://github.com/DRMacIver/hypothesis/archive/v%{version}.tar.gz#/hypothesis-%{version}.tar.gz +# tweak timeouts when running on slow builders +Patch0: %{pkgname}-1.10.6-tweak_timeouts.patch BuildArch: noarch BuildRequires: python2-devel @@ -64,6 +66,7 @@ flow. %prep %setup -qc +%patch0 -p1 -b .tweak_timeouts mv %{pkgname}-%{version} python2 # remove shebang, mergedbs gets installed in sitelib %{__sed} -i -e 1,2d python2/src/hypothesis/tools/mergedbs.py