summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-17 23:16:05 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:51:20 +0100
commitc619f86efc4f502f7127a1fd2ac165dd970658f9 (patch)
treebc367106f6fd078ef37aa3eea41e4748090e9031 /source4
parente7b93f7d4765d4492c9fbd1cfdb31bdfa669613b (diff)
downloadsamba-c619f86efc4f502f7127a1fd2ac165dd970658f9.tar.gz
samba-c619f86efc4f502f7127a1fd2ac165dd970658f9.tar.bz2
samba-c619f86efc4f502f7127a1fd2ac165dd970658f9.zip
r26516: Fix line splitting in subunitrun.
(This used to be commit 623b7b31144f9da5e256e5541d04db8698dd39d3)
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/python/subunit/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/python/subunit/__init__.py b/source4/scripting/python/subunit/__init__.py
index 4f24803e63..4d3434a3ea 100644
--- a/source4/scripting/python/subunit/__init__.py
+++ b/source4/scripting/python/subunit/__init__.py
@@ -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")