Skip to content

Commit a168e5a

Browse files
authored
Merge pull request #245 from asmeurer/conftest-fix
Fix issue in conftest.py
2 parents 5d883a8 + 17310a4 commit a168e5a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: conftest.py

+3-3
Original file line numberDiff line numberDiff 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+
)

0 commit comments

Comments
 (0)