Skip to content

Commit 1774037

Browse files
committed
MAINT: Allow import xpx.testing outside of test modules
1 parent 75e5166 commit 1774037

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/array_api_extra/testing.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
from types import ModuleType
1414
from typing import TYPE_CHECKING, Any, TypeVar, cast
1515

16-
import pytest
17-
1816
from ._lib._utils._compat import is_dask_namespace, is_jax_namespace
1917

2018
__all__ = ["lazy_xp_function", "patch_lazy_xp_functions"]
@@ -25,6 +23,7 @@
2523
# https://github.com/scikit-learn/scikit-learn/pull/27910#issuecomment-2568023972
2624
from typing import ParamSpec
2725

26+
import pytest
2827
from dask.typing import Graph, Key, SchedulerGetCallable
2928
from typing_extensions import override
3029

0 commit comments

Comments
 (0)