1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-10 04:23:50 +03:00

r26516: Fix line splitting in subunitrun.

This commit is contained in:
Jelmer Vernooij
2007-12-17 23:16:05 +01:00
committed by Stefan Metzmacher
parent 88a2d0de84
commit 623b7b3114

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")