Author: bugman Date: Tue Jan 4 11:30:38 2011 New Revision: 12119 URL: http://svn.gna.org/viewcvs/relax?rev=12119&view=rev Log: The RelaxTestLoader now skips tests if the are in the status.skipped_test list. This is instead of the skip flag being set or not. Modified: 1.3/test_suite/relax_test_loader.py Modified: 1.3/test_suite/relax_test_loader.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/relax_test_loader.py?rev=12119&r1=12118&r2=12119&view=diff ============================================================================== --- 1.3/test_suite/relax_test_loader.py (original) +++ 1.3/test_suite/relax_test_loader.py Tue Jan 4 11:30:38 2011 @@ -29,6 +29,9 @@ # Python module imports from unittest import TestLoader, TestSuite +# relax module imports. +from status import Status; status = Status() + class RelaxTestLoader(TestLoader): """Replacement TestLoader class.""" @@ -54,7 +57,7 @@ test_case = testCaseClass(testCaseNames[i]) # Skip. - if hasattr(test_case, 'skip') and test_case.skip: + if status.skipped_tests and testCaseNames[i] in zip(*status.skipped_tests)[0]: continue # Append the test case.