mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Unittest - Properly comment output lines in TAP format
This commit is contained in:
parent
d65e9b2594
commit
7cc4775060
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ class TAPTestResult(unittest.result.TestResult):
|
|||
padding = " " * (len(status) + 3)
|
||||
for line in msg.splitlines():
|
||||
# Force displaying new-line characters as literal new lines
|
||||
line = line.replace("\\n", "\n")
|
||||
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