mailr16382 - /branches/uf_redesign/test_suite/system_tests/__init__.py


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

Header


Content

Posted by edward on May 22, 2012 - 13:20:
Author: bugman
Date: Tue May 22 13:20:04 2012
New Revision: 16382

URL: http://svn.gna.org/viewcvs/relax?rev=16382&view=rev
Log:
Added some error checking for the system test class execution.

This is for better user feedback for when the user supplied class does not 
exist.


Modified:
    branches/uf_redesign/test_suite/system_tests/__init__.py

Modified: branches/uf_redesign/test_suite/system_tests/__init__.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/test_suite/system_tests/__init__.py?rev=16382&r1=16381&r2=16382&view=diff
==============================================================================
--- branches/uf_redesign/test_suite/system_tests/__init__.py (original)
+++ branches/uf_redesign/test_suite/system_tests/__init__.py Tue May 22 
13:20:04 2012
@@ -118,6 +118,10 @@
         for test in tests:
             # The entire test class.
             if not search('\.', test):
+                # Check that the class exists.
+                if test not in globals():
+                    raise RelaxError("The system test class '%s' does not 
exist." % test)
+
                 # The uninstantiated class object.
                 obj = globals()[test]
 




Related Messages


Powered by MHonArc, Updated Tue May 22 14:00:02 2012