We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2e5b04d + b83c85b commit f9b4dcfCopy full SHA for f9b4dcf
src/array_api_extra/testing.py
@@ -14,7 +14,7 @@
14
15
import pytest
16
17
-from array_api_extra._lib._utils._compat import is_dask_namespace, is_jax_namespace
+from ._lib._utils._compat import is_dask_namespace, is_jax_namespace
18
19
__all__ = ["lazy_xp_function", "patch_lazy_xp_functions"]
20
vendor_tests/test_vendor.py
@@ -39,6 +39,15 @@ def test_vendor_extra():
39
assert_array_equal(y, x)
40
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
51
def test_vendor_extra_uses_vendor_compat():
52
from ._array_api_compat_vendor import array_namespace as n1
53
from .array_api_extra._lib._utils._compat import array_namespace as n2
0 commit comments