2a5b6a
From 3c74e34e8d8c5b3db024dbe04a352e807ed2b627 Mon Sep 17 00:00:00 2001
2a5b6a
From: Florian Festi <ffesti@redhat.com>
2a5b6a
Date: Wed, 23 Sep 2015 11:30:12 +0200
2a5b6a
Subject: [PATCH] Fix error handling in rpmio Python binding test case
2a5b6a
2a5b6a
---
2a5b6a
 tests/rpmpython.at | 2 +-
2a5b6a
 1 file changed, 1 insertion(+), 1 deletion(-)
2a5b6a
2a5b6a
diff --git a/tests/rpmpython.at b/tests/rpmpython.at
2a5b6a
index 949673b..eac31b2 100644
2a5b6a
--- a/tests/rpmpython.at
2a5b6a
+++ b/tests/rpmpython.at
2a5b6a
@@ -53,7 +53,7 @@ for iot in [ 'fpio', 'fdio', 'ufdio', 'gzdio' ]:
2a5b6a
     fd = rpm.fd(fn, 'r', iot)
2a5b6a
     rdata = fd.read()
2a5b6a
     if rdata != data:
2a5b6a
-        myprint('%s read fail (got %d bytes)' % (iot, len(rdata), rdata))
2a5b6a
+        myprint('%s read fail (got %d bytes)\n%s' % (iot, len(rdata), rdata))
2a5b6a
     # compressed io types can't seek
2a5b6a
     if iot == 'ufdio':
2a5b6a
         fd.seek(0)
2a5b6a
-- 
2a5b6a
1.9.3
2a5b6a