Skip to content

Commit 35554a6

Browse files
committed
Fix no dependencies test
1 parent 64247c0 commit 35554a6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_no_dependencies.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
import sys
1212
import subprocess
1313

14-
from ._helpers import import_
15-
1614
import pytest
1715

1816
class Array:
@@ -54,6 +52,9 @@ def _test_dependency(mod):
5452
@pytest.mark.parametrize("library", ["cupy", "numpy", "torch", "dask.array",
5553
"jax.numpy", "array_api_strict"])
5654
def test_numpy_dependency(library):
55+
# This import is here because it imports numpy
56+
from ._helpers import import_
57+
5758
# This unfortunately won't go through any of the pytest machinery. We
5859
# reraise the exception as an AssertionError so that pytest will show it
5960
# in a semi-reasonable way

0 commit comments

Comments
 (0)