Skip to content

Commit 4e14749

Browse files
committed
Fix issue in conftest.py
This is breaking the array-api-compat CI, so we need to merge this straightaway.
1 parent 5d883a8 commit 4e14749

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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)