File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ def pytest_addoption(parser):
24
24
"--hypothesis-max-examples" ,
25
25
"--max-examples" ,
26
26
action = "store" ,
27
- default = None ,
27
+ default = 100 ,
28
28
help = "set the Hypothesis max_examples setting" ,
29
29
)
30
30
# Hypothesis deadline
@@ -155,7 +155,7 @@ def pytest_collection_modifyitems(config, items):
155
155
156
156
disabled_exts = config .getoption ("--disable-extension" )
157
157
disabled_dds = config .getoption ("--disable-data-dependent-shapes" )
158
- unvectorized_max_examples = math .ceil (math .log (config .getoption ("--hypothesis-max-examples" ) or 50 ))
158
+ unvectorized_max_examples = math .ceil (math .log (int ( config .getoption ("--hypothesis-max-examples" ) ) or 50 ))
159
159
160
160
# 2. Iterate through items and apply markers accordingly
161
161
# ------------------------------------------------------
@@ -239,4 +239,4 @@ def pytest_collection_modifyitems(config, items):
239
239
f"{ f_bad_ids } \n "
240
240
f"(xfails file: { xfails_file } )\n "
241
241
f"{ bad_ids_end_msg } "
242
- )
242
+ )
You can’t perform that action at this time.
0 commit comments