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.
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits