summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/testing/__init__.py1
-rw-r--r--numpy/testing/__init__.pyi2
-rw-r--r--numpy/testing/_private/utils.py4
-rw-r--r--numpy/testing/utils.py3
4 files changed, 4 insertions, 6 deletions
diff --git a/numpy/testing/__init__.py b/numpy/testing/__init__.py
index e1f87621f..064a74a16 100644
--- a/numpy/testing/__init__.py
+++ b/numpy/testing/__init__.py
@@ -8,6 +8,7 @@ away.
from unittest import TestCase
from ._private.utils import *
+from ._private.utils import _assert_valid_refcount, _gen_alignment_data
from ._private import decorators as dec
from ._private.nosetester import (
run_module_suite, NoseTester as Tester
diff --git a/numpy/testing/__init__.pyi b/numpy/testing/__init__.pyi
index ae2b14b45..f40c06e9a 100644
--- a/numpy/testing/__init__.pyi
+++ b/numpy/testing/__init__.pyi
@@ -40,8 +40,6 @@ from numpy.testing._private.utils import (
HAS_REFCOUNT as HAS_REFCOUNT,
suppress_warnings as suppress_warnings,
assert_array_compare as assert_array_compare,
- _assert_valid_refcount as _assert_valid_refcount,
- _gen_alignment_data as _gen_alignment_data,
assert_no_gc_cycles as assert_no_gc_cycles,
break_cycles as break_cycles,
HAS_LAPACK64 as HAS_LAPACK64,
diff --git a/numpy/testing/_private/utils.py b/numpy/testing/_private/utils.py
index 393fedc27..487aa0b4c 100644
--- a/numpy/testing/_private/utils.py
+++ b/numpy/testing/_private/utils.py
@@ -35,8 +35,7 @@ __all__ = [
'assert_allclose', 'IgnoreException', 'clear_and_catch_warnings',
'SkipTest', 'KnownFailureException', 'temppath', 'tempdir', 'IS_PYPY',
'HAS_REFCOUNT', 'suppress_warnings', 'assert_array_compare',
- '_assert_valid_refcount', '_gen_alignment_data', 'assert_no_gc_cycles',
- 'break_cycles', 'HAS_LAPACK64'
+ 'assert_no_gc_cycles', 'break_cycles', 'HAS_LAPACK64'
]
@@ -2518,4 +2517,3 @@ def _no_tracing(func):
finally:
sys.settrace(original_trace)
return wrapper
-
diff --git a/numpy/testing/utils.py b/numpy/testing/utils.py
index 753258c13..20a883304 100644
--- a/numpy/testing/utils.py
+++ b/numpy/testing/utils.py
@@ -12,6 +12,7 @@ warnings.warn("Importing from numpy.testing.utils is deprecated "
DeprecationWarning, stacklevel=2)
from ._private.utils import *
+from ._private.utils import _assert_valid_refcount, _gen_alignment_data
__all__ = [
'assert_equal', 'assert_almost_equal', 'assert_approx_equal',
@@ -24,5 +25,5 @@ __all__ = [
'assert_allclose', 'IgnoreException', 'clear_and_catch_warnings',
'SkipTest', 'KnownFailureException', 'temppath', 'tempdir', 'IS_PYPY',
'HAS_REFCOUNT', 'suppress_warnings', 'assert_array_compare',
- '_assert_valid_refcount', '_gen_alignment_data', 'assert_no_gc_cycles'
+ 'assert_no_gc_cycles'
]