summaryrefslogtreecommitdiffstats
path: root/Lib/test/regrtest.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-07-17 14:51:37 (GMT)
committerGuido van Rossum <guido@python.org>1997-07-17 14:51:37 (GMT)
commit75fce308bc79ab1f0774e9b3f61031121994e5df (patch)
tree243fc81ad5f1737ecff230d4a036ccb67283be40 /Lib/test/regrtest.py
parentdb2b70cb99377ced6bca4ef96fcfbc1eaa83e0d3 (diff)
downloadcpython-75fce308bc79ab1f0774e9b3f61031121994e5df.zip
cpython-75fce308bc79ab1f0774e9b3f61031121994e5df.tar.gz
cpython-75fce308bc79ab1f0774e9b3f61031121994e5df.tar.bz2
Add flush() method to fake file.
Diffstat (limited to 'Lib/test/regrtest.py')
-rwxr-xr-xLib/test/regrtest.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index 431863e..ea4f4ce 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -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: