Skip to content

Commit 4b12b0e

Browse files
committed
Default Hypothesis deadline to 800 again
1 parent 36f4c1e commit 4b12b0e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

conftest.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ def pytest_configure(config):
8686
"unvectorized: asserts against values via element-wise iteration (not performative!)",
8787
)
8888
# Hypothesis
89-
profile_settings = {
90-
"max_examples": config.getoption("--hypothesis-max-examples"),
91-
"derandomize": config.getoption("--hypothesis-derandomize"),
92-
}
93-
if config.getoption("--hypothesis-disable-deadline"):
94-
profile_settings["deadline"] = None
95-
settings.register_profile("array-api-tests", **profile_settings)
89+
deadline = None if config.getoption("--hypothesis-disable-deadline") else 800
90+
settings.register_profile(
91+
"array-api-tests",
92+
max_examples=config.getoption("--hypothesis-max-examples"),
93+
derandomize=config.getoption("--hypothesis-derandomize"),
94+
deadline=deadline,
95+
)
9696
settings.load_profile("array-api-tests")
9797
# CI
9898
if config.getoption("--ci"):

0 commit comments

Comments
 (0)