Skip to content

Commit 713fe6a

Browse files
committed
Add another failure repro decorator
1 parent 1d9ae75 commit 713fe6a

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

tests/test_dotv.py

+15-13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from __future__ import division
2-
from hypothesis import given, assume
2+
from hypothesis import given, assume, reproduce_failure
33
from math import sqrt, floor
44

55
from blis_tests_common import *
@@ -8,34 +8,36 @@
88

99

1010
@given(
11-
ndarrays(min_len=10, max_len=100,
12-
min_val=-100.0, max_val=100.0, dtype='float64'),
13-
ndarrays(min_len=10, max_len=100,
14-
min_val=-100.0, max_val=100.0, dtype='float64'),
11+
ndarrays(min_len=10, max_len=100, min_val=-100.0, max_val=100.0, dtype="float64"),
12+
ndarrays(min_len=10, max_len=100, min_val=-100.0, max_val=100.0, dtype="float64"),
1513
)
1614
def test_memoryview_double_noconj(A, B):
1715
if len(A) < len(B):
18-
B = B[:len(A)]
16+
B = B[: len(A)]
1917
else:
20-
A = A[:len(B)]
18+
A = A[: len(B)]
2119
assume(A is not None)
2220
assume(B is not None)
2321
numpy_result = A.dot(B)
2422
result = dotv(A, B)
2523
assert_allclose([numpy_result], result, atol=1e-3, rtol=1e-3)
2624

2725

26+
@reproduce_failure(
27+
"6.103.5", b"AXicY2AAggaXUAauVetzGBiBHMYGBjBgZATyGCFshhRGJgY4SGFkBmmCKmNAAgAMFQS/"
28+
)
29+
@reproduce_failure(
30+
"6.103.5", b"AXicE2NAAGsxRiDJCOUpMzIipJQZWYDkQY6POYVSFz8h6WEAAGinBSs="
31+
)
2832
@given(
29-
ndarrays(min_len=10, max_len=100,
30-
min_val=-100.0, max_val=100.0, dtype='float32'),
31-
ndarrays(min_len=10, max_len=100,
32-
min_val=-100.0, max_val=100.0, dtype='float32'),
33+
ndarrays(min_len=10, max_len=100, min_val=-100.0, max_val=100.0, dtype="float32"),
34+
ndarrays(min_len=10, max_len=100, min_val=-100.0, max_val=100.0, dtype="float32"),
3335
)
3436
def test_memoryview_float_noconj(A, B):
3537
if len(A) < len(B):
36-
B = B[:len(A)]
38+
B = B[: len(A)]
3739
else:
38-
A = A[:len(B)]
40+
A = A[: len(B)]
3941
assume(A is not None)
4042
assume(B is not None)
4143
numpy_result = A.dot(B)

0 commit comments

Comments
 (0)