mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Unittest - Don't escape new-line characters in TAP output
This commit is contained in:
parent
d354d13263
commit
d419fb9560
1 changed files with 2 additions and 0 deletions
|
@ -71,6 +71,8 @@ class TAPTestResult(unittest.result.TestResult):
|
|||
self.stream.writeln("# {0}: {1}".format(status, exception))
|
||||
padding = " " * (len(status) + 3)
|
||||
for line in msg.splitlines():
|
||||
# Force displaying new-line characters as literal new lines
|
||||
line = line.replace("\\n", "\n")
|
||||
self.stream.writeln("#{0}{1}".format(padding, line))
|
||||
else:
|
||||
self.stream.writeln("ok {0} - {1}".format(self.testsRun, desc))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue