Skip to content

Commit cad86ef

Browse files
authored
Merge pull request #67 from asmeurer/rename-back
Rename "xptests" back to "array_api_tests"
2 parents 2f9cdbe + c2ba34e commit cad86ef

File tree

89 files changed

+34
-34
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+34
-34
lines changed

.github/workflows/numpy.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,30 +23,30 @@ jobs:
2323
python -m pip install -r requirements.txt
2424
- name: Run the test suite
2525
env:
26-
XPTESTS_MODULE: numpy.array_api
26+
ARRAY_API_TESTS_MODULE: numpy.array_api
2727
run: |
2828
# Mark some known issues as XFAIL
2929
cat << EOF >> xfails.txt
3030
3131
# https://github.com/numpy/numpy/issues/18881
32-
xptests/test_creation_functions.py::test_linspace
32+
array_api_tests/test_creation_functions.py::test_linspace
3333
# einsum is not yet completed in the spec
34-
xptests/test_signatures.py::test_has_names[einsum]
34+
array_api_tests/test_signatures.py::test_has_names[einsum]
3535
# dlpack support is not yet implemented in NumPy
3636
# See https://github.com/numpy/numpy/pull/19083
37-
xptests/test_signatures.py::test_function_positional_args[__dlpack__]
38-
xptests/test_signatures.py::test_function_positional_args[__dlpack_device__]
39-
xptests/test_signatures.py::test_function_positional_args[from_dlpack]
40-
xptests/test_signatures.py::test_function_positional_args[to_device]
41-
xptests/test_signatures.py::test_function_keyword_only_args[__dlpack__]
37+
array_api_tests/test_signatures.py::test_function_positional_args[__dlpack__]
38+
array_api_tests/test_signatures.py::test_function_positional_args[__dlpack_device__]
39+
array_api_tests/test_signatures.py::test_function_positional_args[from_dlpack]
40+
array_api_tests/test_signatures.py::test_function_positional_args[to_device]
41+
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
43-
xptests/test_elementwise_functions.py::test_floor_divide
43+
array_api_tests/test_elementwise_functions.py::test_floor_divide
4444
# mesgrid doesn't return all arrays as the promoted dtype
45-
xptests/test_type_promotion.py::test_meshgrid
45+
array_api_tests/test_type_promotion.py::test_meshgrid
4646
# https://github.com/numpy/numpy/pull/20066#issuecomment-947056094
47-
xptests/test_type_promotion.py::test_where
47+
array_api_tests/test_type_promotion.py::test_where
4848
# shape mismatches are not handled
49-
xptests/test_type_promotion.py::test_tensordot
49+
array_api_tests/test_type_promotion.py::test_tensordot
5050
5151
EOF
5252

README.md

Lines changed: 7 additions & 7 deletions
File renamed without changes.

xptests/_array_module.py renamed to array_api_tests/_array_module.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
array_module = None
1010

1111
if array_module is None:
12-
if 'XPTESTS_MODULE' in os.environ:
13-
mod_name = os.environ['XPTESTS_MODULE']
12+
if 'ARRAY_API_TESTS_MODULE' in os.environ:
13+
mod_name = os.environ['ARRAY_API_TESTS_MODULE']
1414
_module, _sub = mod_name, None
1515
if '.' in mod_name:
1616
_module, _sub = mod_name.split('.', 1)
@@ -24,7 +24,7 @@
2424
# submodules that can be imported (like mxnet.nd).
2525
mod = import_module(mod_name)
2626
else:
27-
raise RuntimeError("No array module specified. Either edit _array_module.py or set the XPTESTS_MODULE environment variable")
27+
raise RuntimeError("No array module specified. Either edit _array_module.py or set the ARRAY_API_TESTS_MODULE environment variable")
2828
else:
2929
mod = array_module
3030
mod_name = mod.__name__
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)