michal-grzedzicki / rpms / rpm

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