Skip to content

Commit

Permalink
Merge pull request #245 from asmeurer/conftest-fix
Browse files Browse the repository at this point in the history
Fix issue in conftest.py
  • Loading branch information
asmeurer authored Mar 20, 2024
2 parents 5d883a8 + 17310a4 commit a168e5a
Showing 1 changed file with 3 additions and 3 deletions.
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}"
)
)

0 comments on commit a168e5a

Please sign in to comment.