wuyuoss / rpms / rpm

Forked from rpms/rpm 3 years ago
Clone

Blame SOURCES/rpm-4.11.x-python-binding-test-case.patch

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