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