File tree 1 file changed +13
-8
lines changed
1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -33,11 +33,23 @@ You need to specify the array library to test. It can be specified via the
33
33
` ARRAY_API_TESTS_MODULE ` environment variable, e.g.
34
34
35
35
``` bash
36
- $ export ARRAY_API_TESTS_MODULE=numpy.array_api
36
+ $ export ARRAY_API_TESTS_MODULE=array_api_strict
37
37
```
38
38
39
39
Alternately, import/define the ` xp ` variable in ` array_api_tests/__init__.py ` .
40
40
41
+ ### Specifying the API version
42
+
43
+ You can specify the API version to use when testing via the
44
+ ` ARRAY_API_TESTS_VERSION ` environment variable, e.g.
45
+
46
+ ``` bash
47
+ $ export ARRAY_API_TESTS_VERSION=" 2023.12"
48
+ ```
49
+
50
+ Currently this defaults to the array module's ` __array_api_version__ ` value, and
51
+ if that attribute doesn't exist then we fallback to ` "2021.12" ` .
52
+
41
53
### Run the suite
42
54
43
55
Simply run ` pytest ` against the ` array_api_tests/ ` folder to run the full suite.
@@ -154,13 +166,6 @@ library to fail.
154
166
155
167
### Configuration
156
168
157
- #### API version
158
-
159
- You can specify the API version to use when testing via the
160
- ` ARRAY_API_TESTS_VERSION ` environment variable. Currently this defaults to the
161
- array module's ` __array_api_version__ ` value, and if that attribute doesn't
162
- exist then we fallback to ` "2021.12" ` .
163
-
164
169
#### Data-dependent shapes
165
170
166
171
Use the ` --disable-data-dependent-shapes ` flag to skip testing functions which have
You can’t perform that action at this time.
0 commit comments