Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def pytest_addoption(parser):
"--hypothesis-max-examples",
"--max-examples",
action="store",
default=None,
default=100,
help="set the Hypothesis max_examples setting",
)
# Hypothesis deadline
Expand Down Expand Up @@ -155,7 +155,7 @@ def pytest_collection_modifyitems(config, items):

disabled_exts = config.getoption("--disable-extension")
disabled_dds = config.getoption("--disable-data-dependent-shapes")
unvectorized_max_examples = math.ceil(math.log(config.getoption("--hypothesis-max-examples") or 50))
unvectorized_max_examples = math.ceil(math.log(int(config.getoption("--hypothesis-max-examples")) or 50))

# 2. Iterate through items and apply markers accordingly
# ------------------------------------------------------
Expand Down Expand Up @@ -239,4 +239,4 @@ def pytest_collection_modifyitems(config, items):
f"{f_bad_ids}\n"
f"(xfails file: {xfails_file})\n"
f"{bad_ids_end_msg}"
)
)