Skip to content

Commit 3e9f8a6

Browse files
committed
Use max_examples/10 for unvectorized_max_examples
Previously it was log(max_examples), but this makes it very difficult to actually run a lot of examples by increasing max_examples.
1 parent 5818ec1 commit 3e9f8a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def pytest_collection_modifyitems(config, items):
148148

149149
disabled_exts = config.getoption("--disable-extension")
150150
disabled_dds = config.getoption("--disable-data-dependent-shapes")
151-
unvectorized_max_examples = math.ceil(math.log(config.getoption("--hypothesis-max-examples")))
151+
unvectorized_max_examples = config.getoption("--hypothesis-max-examples")//10
152152

153153
# 2. Iterate through items and apply markers accordingly
154154
# ------------------------------------------------------

0 commit comments

Comments
 (0)