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 1414
1515import pytest
1616
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
1818
1919__all__ = ["lazy_xp_function" , "patch_lazy_xp_functions" ]
2020
Original file line number Diff line number Diff line change @@ -39,6 +39,15 @@ def test_vendor_extra():
3939 assert_array_equal (y , x )
4040
4141
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+
4251def test_vendor_extra_uses_vendor_compat ():
4352 from ._array_api_compat_vendor import array_namespace as n1
4453 from .array_api_extra ._lib ._utils ._compat import array_namespace as n2
You can’t perform that action at this time.
0 commit comments