[pacman-dev] [PATCH 2/5] tap.py: replace newlines with escape sequence
Andrew Gregory
andrew.gregory.8 at gmail.com
Thu Nov 12 00:19:58 UTC 2015
Newlines clutter tap output and can potentially confuse TAP parsers.
Signed-off-by: Andrew Gregory <andrew.gregory.8 at gmail.com>
---
test/pacman/tap.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/pacman/tap.py b/test/pacman/tap.py
index 520f1e3..a91071b 100644
--- a/test/pacman/tap.py
+++ b/test/pacman/tap.py
@@ -19,7 +19,7 @@
failed = 0
def _output(msg):
- print("%s%s" % (" "*level, msg))
+ print("%s%s" % (" "*level, str(msg).replace("\n", "\\n")))
def ok(ok, description=""):
global count, failed
--
2.6.2
More information about the pacman-dev
mailing list