mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Add flush() method to fake file.
This commit is contained in:
parent
db2b70cb99
commit
75fce308bc
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue