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

scipy-svn at scipy.org scipy-svn at scipy.org
Thu Dec 27 02:59:50 EST 2007


Author: fperez
Date: 2007-12-27 01:59:45 -0600 (Thu, 27 Dec 2007)
New Revision: 3729

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:58:54 UTC (rev 3728)
+++ branches/testing_cleanup/scipy/sandbox/exmplpackage/tests/ntest.py	2007-12-27 07:59:45 UTC (rev 3729)
@@ -10,11 +10,11 @@
     """ Return elapsed time for executing code_str in the
     namespace of the caller for given times.
     """
-    frame = sys._get_frame(1)
+    frame = sys._getframe(1)
     locs,globs = frame.f_locals,frame.f_globals
 
     code = compile(code_str,
-                   'Test name: %s '+test_name,
+                   'Test name: %s ' % test_name,
                    'exec')
     i = 0
     elapsed = jiffies()




More information about the Scipy-svn mailing list