mailr22808 - /trunk/test_suite/system_tests/relax_fit.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on April 17, 2014 - 19:26:
Author: bugman
Date: Thu Apr 17 19:26:18 2014
New Revision: 22808

URL: http://svn.gna.org/viewcvs/relax?rev=22808&view=rev
Log:
Fixes for two relaxation curve-fitting system tests for Python 3.3+.

These are the Relax_fit.test_curve_fitting_height and 
Relax_fit.test_curve_fitting_volume system
tests which fail due to accuracy differences and a bad call to the UnitTest 
method assertEqaul()
which should have been an assertAlmostEqual() call.


Modified:
    trunk/test_suite/system_tests/relax_fit.py

Modified: trunk/test_suite/system_tests/relax_fit.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/system_tests/relax_fit.py?rev=22808&r1=22807&r2=22808&view=diff
==============================================================================
--- trunk/test_suite/system_tests/relax_fit.py  (original)
+++ trunk/test_suite/system_tests/relax_fit.py  Thu Apr 17 19:26:18 2014
@@ -82,8 +82,8 @@
 
         # Check the errors.
         for key in cdp.sigma_I:
-            self.assertEqual(cdp.sigma_I[key], 10578.039482421433, 6)
-            self.assertEqual(cdp.var_I[key], 111894919.29166669)
+            self.assertAlmostEqual(cdp.sigma_I[key], 10578.039482421433, 6)
+            self.assertAlmostEqual(cdp.var_I[key], 111894919.29166669)
 
         # Spin data check.
         i = 0




Related Messages


Powered by MHonArc, Updated Thu Apr 17 19:40:02 2014