Skip to content

Commit 4da61e5

Browse files
committed
Merge remote-tracking branch 'upstream/master' into fix-default-complex
2 parents bef0ea3 + db95e67 commit 4da61e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ def xp_has_ext(ext: str) -> bool:
124124

125125

126126
def check_id_match(id_, pattern):
127+
id_ = id_.removeprefix('array-api-tests/')
128+
127129
if id_ == pattern:
128130
return True
129131

@@ -180,7 +182,7 @@ def pytest_collection_modifyitems(config, items):
180182

181183
disabled_exts = config.getoption("--disable-extension")
182184
disabled_dds = config.getoption("--disable-data-dependent-shapes")
183-
unvectorized_max_examples = config.getoption("--hypothesis-max-examples")//10
185+
unvectorized_max_examples = max(1, config.getoption("--hypothesis-max-examples")//10)
184186

185187
# 2. Iterate through items and apply markers accordingly
186188
# ------------------------------------------------------

0 commit comments

Comments
 (0)