diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2018-07-01 15:23:07 -0700 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2018-07-02 09:08:48 -0700 |
commit | 11302b66fec3e9f64e0eb77075344acec65d2c0f (patch) | |
tree | 06a4f77bad2bc17efb147b8b47d8362262720bf5 /numpy/random | |
parent | a72611971cbcbaf7a553f1bf8eec647694e61b94 (diff) | |
download | numpy-11302b66fec3e9f64e0eb77075344acec65d2c0f.tar.gz |
MAINT: Move pytesttester outside of np.testing, to avoid creating unnecessary import dependencies
pytesttester is used by every single subpackage, so making it depend on np.testing just creates cyclic dependencies that can lead to circular imports
Relates to #11457
Diffstat (limited to 'numpy/random')
-rw-r--r-- | numpy/random/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/random/__init__.py b/numpy/random/__init__.py index 81cb94cc1..82aefce5f 100644 --- a/numpy/random/__init__.py +++ b/numpy/random/__init__.py @@ -117,6 +117,6 @@ def __RandomState_ctor(): """ return RandomState(seed=0) -from numpy.testing._private.pytesttester import PytestTester +from numpy._pytesttester import PytestTester test = PytestTester(__name__) del PytestTester |