File tree 6 files changed +10
-19
lines changed
6 files changed +10
-19
lines changed Original file line number Diff line number Diff line change 15
15
setdiff1d
16
16
sinc
17
17
```
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.
2
2
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 (
4
7
array_namespace ,
5
8
is_cupy_namespace ,
6
9
is_pydata_sparse_namespace ,
7
10
is_torch_namespace ,
8
11
)
9
- from ._lib . _typing import Array , ModuleType
12
+ from ._typing import Array , ModuleType
10
13
11
14
__all__ = ["xp_assert_close" , "xp_assert_equal" ]
12
15
Original file line number Diff line number Diff line change 12
12
13
13
from array_api_extra import at
14
14
from array_api_extra ._funcs import _AtOp
15
+ from array_api_extra ._lib ._testing import xp_assert_equal
15
16
from array_api_extra ._lib ._typing import Array , ModuleType
16
- from array_api_extra .testing import xp_assert_equal
17
17
18
18
from .conftest import Library
19
19
Original file line number Diff line number Diff line change 16
16
sinc ,
17
17
)
18
18
from array_api_extra ._lib ._compat import device as get_device
19
+ from array_api_extra ._lib ._testing import xp_assert_close , xp_assert_equal
19
20
from array_api_extra ._lib ._typing import Array , Device , ModuleType
20
- from array_api_extra .testing import xp_assert_close , xp_assert_equal
21
21
22
22
from .conftest import Library
23
23
Original file line number Diff line number Diff line change 1
1
import numpy as np
2
2
import pytest
3
3
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
5
5
6
6
from .conftest import Library
7
7
Original file line number Diff line number Diff line change 2
2
import pytest
3
3
4
4
from array_api_extra ._lib ._compat import device as get_device
5
+ from array_api_extra ._lib ._testing import xp_assert_equal
5
6
from array_api_extra ._lib ._typing import Array , Device , ModuleType
6
7
from array_api_extra ._lib ._utils import in1d
7
- from array_api_extra .testing import xp_assert_equal
8
8
9
9
from .conftest import Library
10
10
You can’t perform that action at this time.
0 commit comments