summaryrefslogtreecommitdiff
path: root/test/coveragetest.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2012-11-21 20:37:56 -0500
committerNed Batchelder <ned@nedbatchelder.com>2012-11-21 20:37:56 -0500
commit62458bcb03cfc4c351d9885bbab607ac1ec69f13 (patch)
treec933360f09c37bee00bcb85f26ebc3769fd79448 /test/coveragetest.py
parenteaa6477331c18d620f69dfd06110ed6098320fc5 (diff)
downloadpython-coveragepy-git-62458bcb03cfc4c351d9885bbab607ac1ec69f13.tar.gz
This is useful during debugging.
Diffstat (limited to 'test/coveragetest.py')
-rw-r--r--test/coveragetest.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/coveragetest.py b/test/coveragetest.py
index 61a75197..4ae399cc 100644
--- a/test/coveragetest.py
+++ b/test/coveragetest.py
@@ -22,6 +22,12 @@ class Tee(object):
for f in self._files:
f.write(data)
+ if 0:
+ # Use this if you need to use a debugger, though it makes some tests
+ # fail, I'm not sure why...
+ def __getattr__(self, name):
+ return getattr(self._files[0], name)
+
# Status returns for the command line.
OK, ERR = 0, 1