Add flush() method to fake file.

This commit is contained in:
Guido van Rossum 1997-07-17 14:51:37 +00:00
parent db2b70cb99
commit 75fce308bc
1 changed files with 3 additions and 0 deletions

View File

@ -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: