Skip to content

Commit b83c85b

Browse files
committed
BUG: vendored xpx.testing crashes on import
1 parent 2e5b04d commit b83c85b

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/array_api_extra/testing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import 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

vendor_tests/test_vendor.py

+9
Original file line numberDiff line numberDiff 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+
4251
def 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

0 commit comments

Comments
 (0)