[Numpy-svn] r5411 - trunk/numpy/testing

numpy-svn@scip... numpy-svn@scip...
Mon Jul 14 21:20:52 CDT 2008


Author: alan.mcintyre
Date: 2008-07-14 21:20:49 -0500 (Mon, 14 Jul 2008)
New Revision: 5411

Modified:
   trunk/numpy/testing/nosetester.py
Log:
Reset doctest.master on each test run to avoid messages about "'__main__' in both 
testers" when test() is run multiple times.


Modified: trunk/numpy/testing/nosetester.py
===================================================================
--- trunk/numpy/testing/nosetester.py	2008-07-14 05:37:40 UTC (rev 5410)
+++ trunk/numpy/testing/nosetester.py	2008-07-15 02:20:49 UTC (rev 5411)
@@ -350,6 +350,10 @@
                 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



More information about the Numpy-svn mailing list