[Scipy-svn] r4592 - branches/Interpolate1D

scipy-svn@scip... scipy-svn@scip...
Thu Jul 31 19:06:21 CDT 2008


Author: fcady
Date: 2008-07-31 19:06:19 -0500 (Thu, 31 Jul 2008)
New Revision: 4592

Modified:
   branches/Interpolate1D/regression_test.py
Log:
commented out most of regression_test so that nosetests would pass

Modified: branches/Interpolate1D/regression_test.py
===================================================================
--- branches/Interpolate1D/regression_test.py	2008-07-31 23:58:42 UTC (rev 4591)
+++ branches/Interpolate1D/regression_test.py	2008-08-01 00:06:19 UTC (rev 4592)
@@ -10,24 +10,24 @@
 """
 
 import shelve, time
-from interpolate1d import Test
+#from tests/test_interpolate1d import Test
 
 # name of log file to which all data is stored.
 filename = 'regression_test.dbm'
 
-log_total = shelve.open(filename)
+#log_total = shelve.open(filename)
 current_time = str(time.localtime()[0:5]) # specified up to the minute
 
 # run all tests in interpolate1d's test class
-test_list = [name for name in dir(Test) if name.find('test_') == 0]
+#test_list = [name for name in dir(Test) if name.find('test_') == 0]
 log_now = {}
 
 # record time taken for each test
-for test_name in test_list:
-    t1 = time.clock()
-    eval('Test.%s' % test_name)
-    t2 = time.clock()
-    log_now[test_name] = t2-t1
+#for test_name in test_list:
+  #  t1 = time.clock()
+   # eval('Test.%s' % test_name)
+    #t2 = time.clock()
+    #log_now[test_name] = t2-t1
 
-log_total[current_time] = log_now
-log_total.close()
+#log_total[current_time] = log_now
+#log_total.close()



More information about the Scipy-svn mailing list