Newlines clutter tap output and can potentially confuse TAP parsers.

Signed-off-by: Andrew Gregory <[email protected]>
---
 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

Reply via email to