1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-31 20:22:15 +03:00

Fix subunit runner exit codes.

(This used to be commit 7911308dbc)
This commit is contained in:
Jelmer Vernooij
2008-02-12 22:10:25 +01:00
parent fdd75e135a
commit 04aef38453
2 changed files with 4 additions and 2 deletions

View File

@ -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