Skip to content

Commit 153c9fa

Browse files
committed
Be more generous about what lines are allowed in a skips/xfail file
1 parent f661284 commit 153c9fa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

conftest.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,10 @@ def pytest_collection_modifyitems(config, items):
117117
if xfails_path:
118118
with open(xfails_path) as f:
119119
for line in f:
120-
if line.startswith("array_api_tests"):
121-
id_ = line.strip("\n")
122-
xfail_ids.append(id_)
120+
if not line.strip() or line.startswith('#'):
121+
continue
122+
id_ = line.strip("\n")
123+
xfail_ids.append(id_)
123124

124125
disabled_exts = config.getoption("--disable-extension")
125126
disabled_dds = config.getoption("--disable-data-dependent-shapes")

0 commit comments

Comments
 (0)