File tree Expand file tree Collapse file tree 6 files changed +10
-19
lines changed Expand file tree Collapse file tree 6 files changed +10
-19
lines changed Original file line number Diff line number Diff line change 1515 setdiff1d
1616 sinc
1717```
18-
19- ## Test tools
20-
21- ``` {eval-rst}
22- .. currentmodule:: array_api_extra.testing
23- .. autosummary::
24- :nosignatures:
25- :toctree: generated
26-
27- xp_assert_equal
28- xp_assert_close
29- ```
Original file line number Diff line number Diff line change 1- """Testing utilities."""
1+ """Testing utilities.
22
3- from ._lib ._compat import (
3+ Note that this is private API; don't expect it to be stable.
4+ """
5+
6+ from ._compat import (
47 array_namespace ,
58 is_cupy_namespace ,
69 is_pydata_sparse_namespace ,
710 is_torch_namespace ,
811)
9- from ._lib . _typing import Array , ModuleType
12+ from ._typing import Array , ModuleType
1013
1114__all__ = ["xp_assert_close" , "xp_assert_equal" ]
1215
Original file line number Diff line number Diff line change 1212
1313from array_api_extra import at
1414from array_api_extra ._funcs import _AtOp
15+ from array_api_extra ._lib ._testing import xp_assert_equal
1516from array_api_extra ._lib ._typing import Array , ModuleType
16- from array_api_extra .testing import xp_assert_equal
1717
1818from .conftest import Library
1919
Original file line number Diff line number Diff line change 1616 sinc ,
1717)
1818from array_api_extra ._lib ._compat import device as get_device
19+ from array_api_extra ._lib ._testing import xp_assert_close , xp_assert_equal
1920from array_api_extra ._lib ._typing import Array , Device , ModuleType
20- from array_api_extra .testing import xp_assert_close , xp_assert_equal
2121
2222from .conftest import Library
2323
Original file line number Diff line number Diff line change 11import numpy as np
22import pytest
33
4- from array_api_extra .testing import xp_assert_close , xp_assert_equal
4+ from array_api_extra ._lib . _testing import xp_assert_close , xp_assert_equal
55
66from .conftest import Library
77
Original file line number Diff line number Diff line change 22import pytest
33
44from array_api_extra ._lib ._compat import device as get_device
5+ from array_api_extra ._lib ._testing import xp_assert_equal
56from array_api_extra ._lib ._typing import Array , Device , ModuleType
67from array_api_extra ._lib ._utils import in1d
7- from array_api_extra .testing import xp_assert_equal
88
99from .conftest import Library
1010
You can’t perform that action at this time.
0 commit comments