From e0607f6ae28e85ab905cd10536055ff5b6cc4652 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Wed, 11 Nov 2015 19:19:58 -0500 Subject: tap.py: replace newlines with escape sequence Newlines clutter tap output and can potentially confuse TAP parsers. Signed-off-by: Andrew Gregory Signed-off-by: Allan McRae --- test/pacman/tap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/pacman/tap.py b/test/pacman/tap.py index 520f1e3c..a91071bd 100644 --- a/test/pacman/tap.py +++ b/test/pacman/tap.py @@ -19,7 +19,7 @@ level = 0 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 -- cgit v1.2.3-24-g4f1b