From d230d86168437b870c86cd962d28ad5e4ead9dc1 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Fri, 8 Jul 2011 14:54:42 +0300 Subject: [PATCH] Add a simple test for Fflush() functionality in python - Prior to previous patch this segfaulted and tracebacked... --- tests/rpmpython.at | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/rpmpython.at b/tests/rpmpython.at index 6275502e6..1669715c1 100644 --- a/tests/rpmpython.at +++ b/tests/rpmpython.at @@ -43,6 +43,7 @@ for iot in [ 'fpio', 'fdio', 'ufdio', 'gzdio' ]: myprint('%s write fail' % iot) if fn != fd.name: myprint('bad file name %s' % fd.name) + fd.flush() fd = rpm.fd(fn, 'r', iot) rdata = fd.read() if rdata != data: