mailr14804 - /1.3/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 October 06, 2011 - 10:33:
Author: bugman
Date: Thu Oct  6 10:33:06 2011
New Revision: 14804

URL: http://svn.gna.org/viewcvs/relax?rev=14804&view=rev
Log:
Bug fix for IO capture in the test suite with Python 2.6 or below.

The RelaxTestRunner._makeResult() replacement method has been reinstated.  
Replacing the class
variable resultclass does not work with earlier versions of the unittest 
site-package.


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=14804&r1=14803&r2=14804&view=diff
==============================================================================
--- 1.3/test_suite/relax_test_runner.py (original)
+++ 1.3/test_suite/relax_test_runner.py Thu Oct  6 10:33:06 2011
@@ -129,7 +129,10 @@
     output to the failure and error reports normally generated by 
TextTestRunner.
     """
 
-    resultclass = RelaxTestResult
+    def _makeResult(self):
+        """Override of the TextTestRunner._makeResult() method."""
+
+        return RelaxTestResult(self.stream, self.descriptions, 
self.verbosity)
 
 
 
@@ -140,4 +143,7 @@
     output to the failure and error reports normally generated by 
TextTestRunner.
     """
 
-    resultclass = GuiTestResult
+    def _makeResult(self):
+        """Override of the TextTestRunner._makeResult() method."""
+
+        return GuiTestResult(self.stream, self.descriptions, self.verbosity)




Related Messages


Powered by MHonArc, Updated Thu Oct 06 12:20:02 2011