From: Guido van Rossum Date: Thu, 17 Jul 1997 14:51:37 +0000 (+0000) Subject: Add flush() method to fake file. X-Git-Tag: v1.5a3~274 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=75fce308bc79ab1f0774e9b3f61031121994e5df;p=thirdparty%2FPython%2Fcpython.git Add flush() method to fake file. --- diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 431863ef8796..ea4f4cedd013 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -171,6 +171,9 @@ class Compare: raise test_support.TestFailed, \ 'Writing: '+`data`+', expected: '+`expected` + def flush(self): + pass + def close(self): leftover = self.fp.read() if leftover: