File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
from typing import Any
4
4
5
- import array_api_strict as xp
5
+ import numpy as xp
6
6
from numpy .testing import assert_array_equal
7
7
8
8
@@ -31,19 +31,19 @@ def test_vendor_compat():
31
31
)
32
32
33
33
x = xp .asarray ([1 , 2 , 3 ])
34
- assert array_namespace (x ) is xp
34
+ assert "array_api_compat.numpy" in array_namespace (x ). __name__
35
35
to_device (x , device (x ))
36
36
assert is_array_api_obj (x )
37
- assert is_array_api_strict_namespace (xp )
37
+ assert not is_array_api_strict_namespace (xp )
38
38
assert not is_cupy_array (x )
39
39
assert not is_cupy_namespace (xp )
40
40
assert not is_dask_array (x )
41
41
assert not is_dask_namespace (xp )
42
42
assert not is_jax_array (x )
43
43
assert not is_jax_namespace (xp )
44
44
assert not is_lazy_array (x )
45
- assert not is_numpy_array (x )
46
- assert not is_numpy_namespace (xp )
45
+ assert is_numpy_array (x )
46
+ assert is_numpy_namespace (xp )
47
47
assert not is_pydata_sparse_array (x )
48
48
assert not is_pydata_sparse_namespace (xp )
49
49
assert not is_torch_array (x )
You can’t perform that action at this time.
0 commit comments