mailr26516 - /trunk/test_suite/relax_test_runner.py


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

Header


Content

Posted by edward on November 11, 2014 - 12:13:
Author: bugman
Date: Tue Nov 11 12:13:52 2014
New Revision: 26516

URL: http://svn.gna.org/viewcvs/relax?rev=26516&view=rev
Log:
The ImportErrors in unit tests are now correctly handled by the relax test 
suite.

If an ImportError occurred, this was previously killing the entire test suite.


Modified:
    trunk/test_suite/relax_test_runner.py

Modified: trunk/test_suite/relax_test_runner.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/relax_test_runner.py?rev=26516&r1=26515&r2=26516&view=diff
==============================================================================
--- trunk/test_suite/relax_test_runner.py       (original)
+++ trunk/test_suite/relax_test_runner.py       Tue Nov 11 12:13:52 2014
@@ -21,7 +21,7 @@
 
 # Python module imports.
 import dep_check
-from re import split
+from re import search, split
 import sys
 from time import time
 from unittest import TextTestRunner
@@ -172,6 +172,10 @@
             test_name = test_name.split('.')
             test_name = "%s.%s" % (test_name[-2], test_name[-1])
 
+        # Handle errors.
+        elif search('Error', test_name):
+            pass
+
         # Modify the unit test name printout.
         else:
             # Strip out the leading 'test_suite.unit_tests.' text.




Related Messages


Powered by MHonArc, Updated Tue Nov 11 13:40:02 2014