Skip to content

Commit d997b96

Browse files
committed
Replace lambda with a string expression in validation test case
Avoids differing memory reference(?) issues
1 parent 9c0a54a commit d997b96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hypothesis-python/tests/array_api/test_argument_validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def e(a, **kwargs):
3333
e(xps.arrays, dtype=xp.int8, shape=(0.5,)),
3434
e(xps.arrays, dtype=xp.int8, shape=1, fill=3),
3535
e(xps.arrays, dtype=xp.int8, shape=1, elements="not a strategy"),
36-
e(xps.arrays, dtype=xp.int8, shape=lambda: "not a strategy"),
36+
e(xps.arrays, dtype=xp.int8, shape="not a shape or strategy"),
3737
e(xps.array_shapes, min_side=2, max_side=1),
3838
e(xps.array_shapes, min_dims=3, max_dims=2),
3939
e(xps.array_shapes, min_dims=-1),

0 commit comments

Comments
 (0)