mailr22608 - /trunk/test_suite/unit_tests/_specific_analyses/test_api.py


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

Header


Content

Posted by edward on March 28, 2014 - 22:01:
Author: bugman
Date: Fri Mar 28 22:01:56 2014
New Revision: 22608

URL: http://svn.gna.org/viewcvs/relax?rev=22608&view=rev
Log:
Fixes for the specific analysis API unit tests.

The 'instance' variable used for the singleton design pattern is skipped in 
the method and object
checks.


Modified:
    trunk/test_suite/unit_tests/_specific_analyses/test_api.py

Modified: trunk/test_suite/unit_tests/_specific_analyses/test_api.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/unit_tests/_specific_analyses/test_api.py?rev=22608&r1=22607&r2=22608&view=diff
==============================================================================
--- trunk/test_suite/unit_tests/_specific_analyses/test_api.py  (original)
+++ trunk/test_suite/unit_tests/_specific_analyses/test_api.py  Fri Mar 28 
22:01:56 2014
@@ -94,6 +94,10 @@
             if search('^_', name):
                 continue
 
+            # Skip the singleton instance.
+            if name == 'instance':
+                continue
+
             # Get the object in the two classes.
             obj_base = getattr(base, name)
             obj = getattr(analysis_obj, name)
@@ -136,6 +140,10 @@
             if search('^_', name):
                 continue
 
+            # Skip the singleton instance.
+            if name == 'instance':
+                continue
+
             # Get the object in the derived class.
             obj = getattr(analysis_obj, name)
 




Related Messages


Powered by MHonArc, Updated Fri Mar 28 22:20:02 2014