1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

r26516: Fix line splitting in subunitrun.

(This used to be commit 623b7b3114)
This commit is contained in:
Jelmer Vernooij
2007-12-17 23:16:05 +01:00
committed by Stefan Metzmacher
parent e7b93f7d47
commit c619f86efc

View File

@ -215,14 +215,14 @@ class TestProtocolClient(unittest.TestResult):
def addError(self, test, error):
"""Report an error in test test."""
self._stream.write("error: %s [\n" % (test.shortDescription() or str(test)))
for line in self._exc_info_to_string(error, test).split():
for line in self._exc_info_to_string(error, test).splitlines():
self._stream.write("%s\n" % line)
self._stream.write("]\n")
def addFailure(self, test, error):
"""Report a failure in test test."""
self._stream.write("failure: %s [\n" % (test.shortDescription() or str(test)))
for line in self._exc_info_to_string(error, test).split():
for line in self._exc_info_to_string(error, test).splitlines():
self._stream.write("%s\n" % line)
self._stream.write("]\n")