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

scipy-svn@scip... scipy-svn@scip...
Sun Sep 12 16:14:36 CDT 2010


Author: warren.weckesser
Date: 2010-09-12 16:14:36 -0500 (Sun, 12 Sep 2010)
New Revision: 6787

Modified:
   trunk/scipy/constants/tests/test_codata.py
Log:
TST: constants: Don't use plain 'assert'.

Modified: trunk/scipy/constants/tests/test_codata.py
===================================================================
--- trunk/scipy/constants/tests/test_codata.py	2010-09-12 21:13:55 UTC (rev 6786)
+++ trunk/scipy/constants/tests/test_codata.py	2010-09-12 21:14:36 UTC (rev 6787)
@@ -1,7 +1,7 @@
 import warnings
 
 from scipy.constants import constants, codata, find
-from numpy.testing import assert_equal, run_module_suite
+from numpy.testing import assert_equal, assert_, run_module_suite
 
 def test_find():
 
@@ -36,7 +36,7 @@
                  '299792458 m s^-1')
 
 def test_find_all():
-    assert len(codata.find(disp=False)) > 300
+    assert_(len(codata.find(disp=False)) > 300)
 
 def test_find_single():
     assert_equal(codata.find('Wien freq', disp=False)[0],



More information about the Scipy-svn mailing list