From 4e14749ac169b3fca1a607691d54b85a06d54036 Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Wed, 20 Mar 2024 13:01:46 -0600 Subject: [PATCH 1/2] Fix issue in conftest.py This is breaking the array-api-compat CI, so we need to merge this straightaway. --- conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conftest.py b/conftest.py index 5e2b13dc..d9e24a38 100644 --- a/conftest.py +++ b/conftest.py @@ -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 # ------------------------------------------------------ @@ -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}" - ) \ No newline at end of file + ) From 17310a4c8f76b2c8381e4378c56b4a34e2fde245 Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Wed, 20 Mar 2024 13:07:27 -0600 Subject: [PATCH 2/2] Add default to --max-examples --- conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conftest.py b/conftest.py index d9e24a38..74f8a948 100644 --- a/conftest.py +++ b/conftest.py @@ -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