Commit 75fce308 authored by Guido van Rossum's avatar Guido van Rossum

Add flush() method to fake file.

parent db2b70cb
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment