mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
@ -21,4 +21,5 @@ from subunit import SubunitTestRunner
|
||||
import sys
|
||||
from unittest import TestProgram
|
||||
|
||||
TestProgram(module=None, argv=sys.argv, testRunner=SubunitTestRunner())
|
||||
runner = SubunitTestRunner()
|
||||
TestProgram(module=None, argv=sys.argv, testRunner=runner)
|
||||
|
@ -209,7 +209,7 @@ class TestProtocolClient(unittest.TestResult):
|
||||
"""A class that looks like a TestResult and informs a TestProtocolServer."""
|
||||
|
||||
def __init__(self, stream):
|
||||
unittest.TestResult.__init__(self)
|
||||
super(TestProtocolClient, self).__init__()
|
||||
self._stream = stream
|
||||
|
||||
def addError(self, test, error):
|
||||
@ -383,5 +383,6 @@ class SubunitTestRunner:
|
||||
def run(self, test):
|
||||
"Run the given test case or test suite."
|
||||
result = TestProtocolClient(self.stream)
|
||||
test(result)
|
||||
return result
|
||||
|
||||
|
Reference in New Issue
Block a user