Skip to content

Commit f7d2ce8

Browse files
committed
Revert "Rename ARRAY_API_TESTS_MODULE env to XPTESTS"
This reverts commit 41dc5c8.
1 parent 2f9cdbe commit f7d2ce8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/numpy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ 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

xptests/_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__

0 commit comments

Comments
 (0)