summaryrefslogtreecommitdiff
path: root/numpy/distutils
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2018-07-01 15:23:07 -0700
committerEric Wieser <wieser.eric@gmail.com>2018-07-02 09:08:48 -0700
commit11302b66fec3e9f64e0eb77075344acec65d2c0f (patch)
tree06a4f77bad2bc17efb147b8b47d8362262720bf5 /numpy/distutils
parenta72611971cbcbaf7a553f1bf8eec647694e61b94 (diff)
downloadnumpy-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/distutils')
-rw-r--r--numpy/distutils/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/__init__.py b/numpy/distutils/__init__.py
index b794bebd7..8dd326920 100644
--- a/numpy/distutils/__init__.py
+++ b/numpy/distutils/__init__.py
@@ -17,7 +17,7 @@ try:
# Normally numpy is installed if the above import works, but an interrupted
# in-place build could also have left a __config__.py. In that case the
# next import may still fail, so keep it inside the try block.
- from numpy.testing._private.pytesttester import PytestTester
+ from numpy._pytesttester import PytestTester
test = PytestTester(__name__)
del PytestTester
except ImportError: