summaryrefslogtreecommitdiff
path: root/coverage/test_helpers.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/test_helpers.py')
-rw-r--r--coverage/test_helpers.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/coverage/test_helpers.py b/coverage/test_helpers.py
index a4c73d31..a42fe3b4 100644
--- a/coverage/test_helpers.py
+++ b/coverage/test_helpers.py
@@ -27,6 +27,11 @@ class Tee(object):
for f in self._files:
f.write(data)
+ def flush(self):
+ """Flush the data on all the files."""
+ for f in self._files:
+ f.flush()
+
if 0:
# Use this if you need to use a debugger, though it makes some tests
# fail, I'm not sure why...