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

scipy-svn at scipy.org scipy-svn at scipy.org
Thu Dec 27 03:05:06 EST 2007


Author: fperez
Date: 2007-12-27 02:05:04 -0600 (Thu, 27 Dec 2007)
New Revision: 3731

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

Modified: branches/testing_cleanup/scipy/sandbox/exmplpackage/tests/ntest.py
===================================================================
--- branches/testing_cleanup/scipy/sandbox/exmplpackage/tests/ntest.py	2007-12-27 08:02:19 UTC (rev 3730)
+++ branches/testing_cleanup/scipy/sandbox/exmplpackage/tests/ntest.py	2007-12-27 08:05:04 UTC (rev 3731)
@@ -6,7 +6,7 @@
 from numpy.distutils.misc_util import yellow_text
 from numpy.testing.utils import jiffies
 
-def measure(code_str,times=1,test_name=None):
+def measure(code_str,times=1,label=None):
     """ Return elapsed time for executing code_str in the
     namespace of the caller for given times.
     """

Modified: branches/testing_cleanup/scipy/sandbox/exmplpackage/tests/test_foo.py
===================================================================
--- branches/testing_cleanup/scipy/sandbox/exmplpackage/tests/test_foo.py	2007-12-27 08:02:19 UTC (rev 3730)
+++ branches/testing_cleanup/scipy/sandbox/exmplpackage/tests/test_foo.py	2007-12-27 08:05:04 UTC (rev 3731)
@@ -92,5 +92,5 @@
 def test_time():
     "A simple test that times things"
     x = 1
-    time=measure("x+1",test_name='test_time')
+    time = measure("x+1",times=100,label='test_time')
     info('Time taken: %s' % time)




More information about the Scipy-svn mailing list