mailr17796 - /trunk/test_suite/system_tests/model_free.py


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

Header


Content

Posted by edward on October 10, 2012 - 16:44:
Author: bugman
Date: Wed Oct 10 16:44:00 2012
New Revision: 17796

URL: http://svn.gna.org/viewcvs/relax?rev=17796&view=rev
Log:
Fix for the Mf.test_read_results_1_3_v2_broken() system test for Python 3.2.

The object comparison method no longer converts dictionaries to strings for 
the comparison, as the
string version is different in different Python versions.


Modified:
    trunk/test_suite/system_tests/model_free.py

Modified: trunk/test_suite/system_tests/model_free.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/system_tests/model_free.py?rev=17796&r1=17795&r2=17796&view=diff
==============================================================================
--- trunk/test_suite/system_tests/model_free.py (original)
+++ trunk/test_suite/system_tests/model_free.py Wed Oct 10 16:44:00 2012
@@ -229,7 +229,10 @@
             self.assertEqual(type(sub_obj1), type(sub_obj2))
 
             # Check that they are equal (converting to strings to avoid 
comparison nastiness).
-            self.assertEqual(str(sub_obj1), str(sub_obj2))
+            if isinstance(sub_obj1, dict):
+                self.assertEqual(sub_obj1, sub_obj2)
+            else:
+                self.assertEqual(str(sub_obj1), str(sub_obj2))
 
 
     def test_bug_14872_unicode_selection(self):




Related Messages


Powered by MHonArc, Updated Thu Oct 11 11:00:01 2012