From: Yaroslav Halchenko Date: Thu, 10 Jan 2019 16:05:31 +0000 (+0000) Subject: BF: import nosetester explicitely for a doctest Otherwise it leads to failures with... X-Git-Tag: archive/raspbian/0.4.2-2+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=116257e24f42984caee03407f36c894919c5415a;p=nipy.git 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 --- 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' """