File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 14
14
15
15
import pytest
16
16
17
- from array_api_extra ._lib ._utils ._compat import is_dask_namespace , is_jax_namespace
17
+ from ._lib ._utils ._compat import is_dask_namespace , is_jax_namespace
18
18
19
19
__all__ = ["lazy_xp_function" , "patch_lazy_xp_functions" ]
20
20
Original file line number Diff line number Diff line change @@ -39,6 +39,15 @@ def test_vendor_extra():
39
39
assert_array_equal (y , x )
40
40
41
41
42
+ def test_vendor_extra_testing ():
43
+ from .array_api_extra .testing import lazy_xp_function
44
+
45
+ def f (x ):
46
+ return x
47
+
48
+ lazy_xp_function (f )
49
+
50
+
42
51
def test_vendor_extra_uses_vendor_compat ():
43
52
from ._array_api_compat_vendor import array_namespace as n1
44
53
from .array_api_extra ._lib ._utils ._compat import array_namespace as n2
You can’t perform that action at this time.
0 commit comments