mailr6537 - /1.3/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 June 28, 2008 - 22:56:
Author: bugman
Date: Sat Jun 28 22:56:18 2008
New Revision: 6537

URL: http://svn.gna.org/viewcvs/relax?rev=6537&view=rev
Log:
Fixes for the object_comparison() method.


Modified:
    1.3/test_suite/system_tests/model_free.py

Modified: 1.3/test_suite/system_tests/model_free.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/system_tests/model_free.py?rev=6537&r1=6536&r2=6537&view=diff
==============================================================================
--- 1.3/test_suite/system_tests/model_free.py (original)
+++ 1.3/test_suite/system_tests/model_free.py Sat Jun 28 22:56:18 2008
@@ -24,6 +24,7 @@
 from math import pi
 import platform
 import numpy
+from re import search
 import sys
 from unittest import TestCase
 
@@ -119,11 +120,16 @@
             if skip and name in skip:
                 continue
 
+            # Skip objects starting with '_'.
+            if search('^_', name):
+                continue
+
             # Get the sub-objects.
             sub_obj1 = getattr(obj1, name)
             sub_obj2 = getattr(obj2, name)
 
             # Check that they are equal.
+            print type(sub_obj1)
             self.assertEqual(sub_obj1, sub_obj2)
 
 




Related Messages


Powered by MHonArc, Updated Sat Jun 28 23:00:21 2008