@@ -43,7 +43,7 @@ def test_sample(self):
43
43
import os
44
44
import sys
45
45
import time
46
- from unittest import TestResult , _TextTestResult , TextTestRunner
46
+ from unittest import TestResult , TextTestResult , TextTestRunner
47
47
import xml .dom .minidom
48
48
try :
49
49
from StringIO import StringIO
@@ -95,15 +95,15 @@ def get_error_info(self):
95
95
self .err , self .test_method )
96
96
97
97
98
- class _XMLTestResult (_TextTestResult ):
98
+ class _XMLTestResult (TextTestResult ):
99
99
"""A test result class that can express test results in a XML report.
100
100
101
101
Used by XMLTestRunner.
102
102
"""
103
103
def __init__ (self , stream = sys .stderr , descriptions = 1 , verbosity = 1 ,
104
104
elapsed_times = True ):
105
105
"Create a new instance of _XMLTestResult."
106
- _TextTestResult .__init__ (self , stream , descriptions , verbosity )
106
+ TextTestResult .__init__ (self , stream , descriptions , verbosity )
107
107
self .successes = []
108
108
self .callback = None
109
109
self .elapsed_times = elapsed_times
@@ -158,7 +158,7 @@ def startTest(self, test):
158
158
def stopTest (self , test ):
159
159
"Called after execute each test method."
160
160
self ._restore_standard_output ()
161
- _TextTestResult .stopTest (self , test )
161
+ TextTestResult .stopTest (self , test )
162
162
self .stop_time = time .time ()
163
163
164
164
if self .callback and callable (self .callback ):
0 commit comments