Skip to content

Commit 98f2a91

Browse files
committed
Fix unvectorized_max_examples in conftest.py
If max_examples<10, then max_examples // 10 is zero, which results in an error.
1 parent 827edd8 commit 98f2a91

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)