[Scipy-svn] r3915 - trunk/scipy/testing

scipy-svn@scip... scipy-svn@scip...
Mon Feb 11 17:27:11 CST 2008


Author: matthew.brett@gmail.com
Date: 2008-02-11 17:27:05 -0600 (Mon, 11 Feb 2008)
New Revision: 3915

Modified:
   trunk/scipy/testing/nulltester.py
Log:
Trimmed nulltester, no functional change

Modified: trunk/scipy/testing/nulltester.py
===================================================================
--- trunk/scipy/testing/nulltester.py	2008-02-11 23:13:58 UTC (rev 3914)
+++ trunk/scipy/testing/nulltester.py	2008-02-11 23:27:05 UTC (rev 3915)
@@ -8,12 +8,9 @@
 '''
 
 class NullTester(object):
-    _msg = 'Need nose >=0.10 for tests - see %s' % \
-           'http://somethingaboutorange.com/mrl/projects/nose'
-    def __init__(self, *args, **kwargs):
-        pass
     def test(self, labels=None, *args, **kwargs):
-        raise ImportError, self._msg
-    def bench(self, labels=None, *args, **kwargs):
-        raise ImportError, self._msg
+        raise ImportError, \
+              'Need nose >=0.10 for tests - see %s' % \
+              'http://somethingaboutorange.com/mrl/projects/nose'
+    bench = test
     



More information about the Scipy-svn mailing list