|
12 | 12 | # use direct import to bypass freezegun
|
13 | 13 | from time import time
|
14 | 14 |
|
15 | | -from .unittest import TestResult, _TextTestResult, failfast |
| 15 | +from .unittest import TestResult, TextTestResult, failfast |
16 | 16 |
|
17 | 17 |
|
18 | 18 | # Matches invalid XML1.0 unicode characters, like control characters:
|
@@ -189,15 +189,15 @@ def get_error_info(self):
|
189 | 189 | return self.test_exception_info
|
190 | 190 |
|
191 | 191 |
|
192 | | -class _XMLTestResult(_TextTestResult): |
| 192 | +class _XMLTestResult(TextTestResult): |
193 | 193 | """
|
194 | 194 | A test result class that can express test results in a XML report.
|
195 | 195 |
|
196 | 196 | Used by XMLTestRunner.
|
197 | 197 | """
|
198 | 198 | def __init__(self, stream=sys.stderr, descriptions=1, verbosity=1,
|
199 | 199 | elapsed_times=True, properties=None, infoclass=None):
|
200 | | - _TextTestResult.__init__(self, stream, descriptions, verbosity) |
| 200 | + TextTestResult.__init__(self, stream, descriptions, verbosity) |
201 | 201 | self._stdout_data = None
|
202 | 202 | self._stderr_data = None
|
203 | 203 | self._stdout_capture = StringIO()
|
@@ -320,7 +320,7 @@ def stopTest(self, test):
|
320 | 320 | # self._stdout_data = sys.stdout.getvalue()
|
321 | 321 | # self._stderr_data = sys.stderr.getvalue()
|
322 | 322 |
|
323 | | - _TextTestResult.stopTest(self, test) |
| 323 | + TextTestResult.stopTest(self, test) |
324 | 324 | self.stop_time = time()
|
325 | 325 |
|
326 | 326 | if self.callback and callable(self.callback):
|
|
0 commit comments