File tree 2 files changed +10
-10
lines changed
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 25
25
env :
26
26
ARRAY_API_TESTS_MODULE : numpy.array_api
27
27
run : |
28
- # Mark some known issues as XFAIL
29
- cat << EOF >> xfails .txt
28
+ # Skip test cases with known issues
29
+ cat << EOF >> skips .txt
30
30
31
31
# copy not implemented
32
32
array_api_tests/test_creation_functions.py::test_asarray_arrays
Original file line number Diff line number Diff line change @@ -71,14 +71,14 @@ def xp_has_ext(ext: str) -> bool:
71
71
return False
72
72
73
73
74
- xfail_ids = []
75
- xfails_path = Path (__file__ ).parent / "xfails .txt"
76
- if xfails_path .exists ():
77
- with open (xfails_path ) as f :
74
+ skip_ids = []
75
+ skips_path = Path (__file__ ).parent / "skips .txt"
76
+ if skips_path .exists ():
77
+ with open (skips_path ) as f :
78
78
for line in f :
79
79
if line .startswith ("array_api_tests" ):
80
80
id_ = line .strip ("\n " )
81
- xfail_ids .append (id_ )
81
+ skip_ids .append (id_ )
82
82
83
83
84
84
def pytest_collection_modifyitems (config , items ):
@@ -96,10 +96,10 @@ def pytest_collection_modifyitems(config, items):
96
96
)
97
97
elif not xp_has_ext (ext ):
98
98
item .add_marker (mark .skip (reason = f"{ ext } not found in array module" ))
99
- # xfail if specified in xfails .txt
100
- for id_ in xfail_ids :
99
+ # skip if specified in skips .txt
100
+ for id_ in skip_ids :
101
101
if item .nodeid .startswith (id_ ):
102
- item .add_marker (mark .xfail (reason = "xfails .txt" ))
102
+ item .add_marker (mark .skip (reason = "skips .txt" ))
103
103
break
104
104
# skip if test not appropiate for CI
105
105
if ci :
You can’t perform that action at this time.
0 commit comments