summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorAlan McIntyre <alan.mcintyre@local>2008-07-15 02:20:49 +0000
committerAlan McIntyre <alan.mcintyre@local>2008-07-15 02:20:49 +0000
commitb6b63456ea8c61351c9bf1415c797d95c87e46f3 (patch)
tree1142558664e23f9f7983e185d9f2c21834f773a5 /numpy
parent8c69b7caef4d73725e53933934efc2bba12d7491 (diff)
downloadnumpy-b6b63456ea8c61351c9bf1415c797d95c87e46f3.tar.gz
Reset doctest.master on each test run to avoid messages about "'__main__' in both
testers" when test() is run multiple times.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/testing/nosetester.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/testing/nosetester.py b/numpy/testing/nosetester.py
index ed3548b76..05abb57b5 100644
--- a/numpy/testing/nosetester.py
+++ b/numpy/testing/nosetester.py
@@ -350,6 +350,10 @@ class NoseTester(object):
self.result = self.testRunner.run(self.test)
self.success = self.result.wasSuccessful()
return self.success
+
+ # reset doctest state
+ import doctest
+ doctest.master = None
t = NumpyTestProgram(argv=argv, exit=False)
return t.result