Skip to content

Commit 6c35cdc

Browse files
committed
MAINT: fix up numpy.testing port
- remove clearly outdated stuff (KnownFailureException, import_nose, datetime support etc) - fix up imports from numpy to torch_np --- in *some* functions. ATM, things which are exposed in `torch_np.testing` via `__init__.py` are OK, the rest isn't.
1 parent 2a52b2a commit 6c35cdc

File tree

3 files changed

+80
-430
lines changed

3 files changed

+80
-430
lines changed

torch_np/testing/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from .utils import (assert_equal, assert_array_equal, assert_almost_equal,
2+
assert_warns, assert_)
3+
4+
from .testing import assert_allclose # FIXME
5+
6+

torch_np/testing.py renamed to torch_np/testing/testing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import torch
22

3-
from ._ndarray import asarray, asarray_replacer
3+
from .._ndarray import asarray_replacer, asarray
44
import torch_np as np
55

66
@asarray_replacer("two")

0 commit comments

Comments
 (0)