Tweak timeouts, build was failing on ARM builder on timing issues
This commit is contained in:
parent
edb1f06ebf
commit
fd864063a9
11
hypothesis-1.10.6-tweak_timeouts.patch
Normal file
11
hypothesis-1.10.6-tweak_timeouts.patch
Normal file
@ -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
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user