]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add flush() method to fake file.
authorGuido van Rossum <guido@python.org>
Thu, 17 Jul 1997 14:51:37 +0000 (14:51 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 17 Jul 1997 14:51:37 +0000 (14:51 +0000)
Lib/test/regrtest.py

index 431863ef87962bee45fb8b71f260dfa7d82c6347..ea4f4cedd0130d5a126e52dce8218275c7d40483 100755 (executable)
@@ -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: