Add flush() method to fake file.
This commit is contained in:
parent
db2b70cb99
commit
75fce308bc
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue