From 116257e24f42984caee03407f36c894919c5415a Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 10 Jan 2019 16:05:31 +0000 Subject: [PATCH] BF: import nosetester explicitely for a doctest Otherwise it leads to failures with fresh numpy where testing.nosetester is not automatically imported. See e.g. https://travis-ci.org/nipy/nipy/jobs/442714642 Gbp-Pq: Name changeset_9f435191a420bf416ded3c32123fb2aa1163256a.diff --- nipy/fixes/numpy/testing/nosetester.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nipy/fixes/numpy/testing/nosetester.py b/nipy/fixes/numpy/testing/nosetester.py index 4be245d..3946088 100644 --- a/nipy/fixes/numpy/testing/nosetester.py +++ b/nipy/fixes/numpy/testing/nosetester.py @@ -21,7 +21,8 @@ def get_package_name(filepath): Examples -------- - >>> np.testing.nosetester.get_package_name('nonsense') + >>> from numpy.testing import nosetester + >>> nosetester.get_package_name('nonsense') 'numpy' """ -- 2.30.2