From a2331114926f37823f0dc45dc44308a94c0d454e Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 8 Feb 2015 10:08:56 -0500 Subject: Useful debugging help. --- coverage/test_helpers.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'coverage/test_helpers.py') 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... -- cgit v1.2.1