Author: bugman Date: Thu Dec 16 12:17:36 2010 New Revision: 11840 URL: http://svn.gna.org/viewcvs/relax?rev=11840&view=rev Log: The system and unit tests are placing their names into the status object. This will be used for debugging. Modified: 1.3/test_suite/relax_test_runner.py Modified: 1.3/test_suite/relax_test_runner.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/relax_test_runner.py?rev=11840&r1=11839&r2=11840&view=diff ============================================================================== --- 1.3/test_suite/relax_test_runner.py (original) +++ 1.3/test_suite/relax_test_runner.py Thu Dec 16 12:17:36 2010 @@ -28,6 +28,9 @@ except ImportError: from StringIO import StringIO +# relax module imports. +from status import Status + class _RelaxTestResult(_TextTestResult): """A replacement for the _TextTestResult class used by the normal TextTestRunner. @@ -50,6 +53,10 @@ self.capt = StringIO() sys.stdout = self.capt sys.stderr = self.capt + + # Place the test name in the status object. + status = Status() + status.exec_lock.test_name = str(test) # Execute the normal startTest method. _TextTestResult.startTest(self, test)