diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-02-08 10:08:56 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-02-08 10:08:56 -0500 |
commit | a2331114926f37823f0dc45dc44308a94c0d454e (patch) | |
tree | 1ab66e1213b63fd45260328d1208eb690919edc9 /coverage/test_helpers.py | |
parent | 7d95e303613cfbbc9067f4813c641c61aa251dc8 (diff) | |
download | python-coveragepy-git-a2331114926f37823f0dc45dc44308a94c0d454e.tar.gz |
Useful debugging help.
Diffstat (limited to 'coverage/test_helpers.py')
-rw-r--r-- | coverage/test_helpers.py | 5 |
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... |