File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 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):
2424 "--hypothesis-max-examples" ,
2525 "--max-examples" ,
2626 action = "store" ,
27- default = None ,
27+ default = 100 ,
2828 help = "set the Hypothesis max_examples setting" ,
2929 )
3030 # Hypothesis deadline
@@ -155,7 +155,7 @@ def pytest_collection_modifyitems(config, items):
155155
156156 disabled_exts = config .getoption ("--disable-extension" )
157157 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 ))
159159
160160 # 2. Iterate through items and apply markers accordingly
161161 # ------------------------------------------------------
@@ -239,4 +239,4 @@ def pytest_collection_modifyitems(config, items):
239239 f"{ f_bad_ids } \n "
240240 f"(xfails file: { xfails_file } )\n "
241241 f"{ bad_ids_end_msg } "
242- )
242+ )
You can’t perform that action at this time.
0 commit comments