diff options
author | Alan McIntyre <alan.mcintyre@local> | 2008-07-15 02:20:49 +0000 |
---|---|---|
committer | Alan McIntyre <alan.mcintyre@local> | 2008-07-15 02:20:49 +0000 |
commit | b6b63456ea8c61351c9bf1415c797d95c87e46f3 (patch) | |
tree | 1142558664e23f9f7983e185d9f2c21834f773a5 /numpy | |
parent | 8c69b7caef4d73725e53933934efc2bba12d7491 (diff) | |
download | numpy-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.py | 4 |
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 |