[Scipy-svn] r3727 - branches/testing_cleanup/scipy/sandbox/exmplpackage/tests

scipy-svn at scipy.org scipy-svn at scipy.org
Thu Dec 27 02:56:45 EST 2007


Author: fperez
Date: 2007-12-27 01:56:42 -0600 (Thu, 27 Dec 2007)
New Revision: 3727

Modified:
   branches/testing_cleanup/scipy/sandbox/exmplpackage/tests/ntest.py
Log:
Further cleanup...

Modified: branches/testing_cleanup/scipy/sandbox/exmplpackage/tests/ntest.py
===================================================================
--- branches/testing_cleanup/scipy/sandbox/exmplpackage/tests/ntest.py	2007-12-27 07:49:22 UTC (rev 3726)
+++ branches/testing_cleanup/scipy/sandbox/exmplpackage/tests/ntest.py	2007-12-27 07:56:42 UTC (rev 3727)
@@ -6,14 +6,15 @@
 from numpy.distutils.misc_util import yellow_text
 from numpy.testing.utils import jiffies
 
-def measure(code_str,times=1):
+def measure(code_str,times=1,test_name=None):
     """ Return elapsed time for executing code_str in the
     namespace of the caller for given times.
     """
     frame = sys.get_frame(1)
     locs,globs = frame.f_locals,frame.f_globals
+
     code = compile(code_str,
-                   'NumpyTestCase runner for '+self.__class__.__name__,
+                   'Test name: %s '+test_name,
                    'exec')
     i = 0
     elapsed = jiffies()




More information about the Scipy-svn mailing list