diff options
author | Bas van Beek <b.f.van.beek@vu.nl> | 2021-06-02 02:58:09 +0200 |
---|---|---|
committer | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2021-06-06 17:58:24 +0200 |
commit | 3c8e5da46c1440ea0eb3fe66fdc897d3fbae194d (patch) | |
tree | 31e9fb0e9965c8e9f14b07347b2f7a0feabb99d6 | |
parent | 22412b3f46451177286f8fc58509a69bb2d95731 (diff) | |
download | numpy-3c8e5da46c1440ea0eb3fe66fdc897d3fbae194d.tar.gz |
MAINT: Remove two private functions from `__all__`
-rw-r--r-- | numpy/testing/__init__.py | 1 | ||||
-rw-r--r-- | numpy/testing/__init__.pyi | 2 | ||||
-rw-r--r-- | numpy/testing/_private/utils.py | 4 | ||||
-rw-r--r-- | numpy/testing/utils.py | 3 |
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' ] |