Skip to content

Commit 31468af

Browse files
authored
Merge pull request #285 from jakevdp/fix-conftest
Fix unvectorized_max_examples in conftest.py
2 parents 827edd8 + 98f2a91 commit 31468af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def pytest_collection_modifyitems(config, items):
180180

181181
disabled_exts = config.getoption("--disable-extension")
182182
disabled_dds = config.getoption("--disable-data-dependent-shapes")
183-
unvectorized_max_examples = config.getoption("--hypothesis-max-examples")//10
183+
unvectorized_max_examples = max(1, config.getoption("--hypothesis-max-examples")//10)
184184

185185
# 2. Iterate through items and apply markers accordingly
186186
# ------------------------------------------------------

0 commit comments

Comments
 (0)