[Scipy-svn] r6562 - trunk/scipy/constants/tests

scipy-svn@scip... scipy-svn@scip...
Sat Jun 26 13:53:03 CDT 2010


Author: stefan
Date: 2010-06-26 13:53:03 -0500 (Sat, 26 Jun 2010)
New Revision: 6562

Modified:
   trunk/scipy/constants/tests/test_codata.py
Log:
ENH: Allow codata tests to be run as script.

Modified: trunk/scipy/constants/tests/test_codata.py
===================================================================
--- trunk/scipy/constants/tests/test_codata.py	2010-06-21 20:55:39 UTC (rev 6561)
+++ trunk/scipy/constants/tests/test_codata.py	2010-06-26 18:53:03 UTC (rev 6562)
@@ -2,7 +2,7 @@
 import warnings
 
 from scipy.constants import find
-from numpy.testing import assert_equal
+from numpy.testing import assert_equal, run_module_suite
 
 def test_find():
 
@@ -25,3 +25,6 @@
                                 'natural unit of momentum in MeV/c',
                                 'natural unit of length',
                                 'natural unit of time']))
+
+if __name__ == "__main__":
+    run_module_suite()



More information about the Scipy-svn mailing list