Skip to content

Commit 866dcd8

Browse files
committed
Support incomplete case names for xfails.txt
And update NumPy workflow to xfail the failing new test cases
1 parent 2d91340 commit 866dcd8

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/numpy.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ jobs:
4141
array_api_tests/test_signatures.py::test_function_keyword_only_args[__dlpack__]
4242
# floor_divide has an issue related to https://github.com/data-apis/array-api/issues/264
4343
array_api_tests/test_elementwise_functions.py::test_floor_divide
44+
# mesgrid doesn't return all arrays as the promoted dtype
45+
array_api_tests/test_type_promotion.py::test_meshgrid
46+
# https://github.com/numpy/numpy/pull/20066#issuecomment-947056094
47+
array_api_tests/test_type_promotion.py::test_where
48+
# shape mismatches are not handled
49+
array_api_tests/test_type_promotion.py::test_tensordot
4450
4551
EOF
4652

conftest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,5 +102,6 @@ def pytest_collection_modifyitems(config, items):
102102
except StopIteration:
103103
pass
104104
# workflow xfail_ids
105-
if item.nodeid in xfail_ids:
106-
item.add_marker(mark.xfail(reason='xfails.txt'))
105+
for id_ in xfail_ids:
106+
if item.nodeid.startswith(id_):
107+
item.add_marker(mark.xfail(reason='xfails.txt'))

0 commit comments

Comments
 (0)