summaryrefslogtreecommitdiff
path: root/coverage/debug.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-02-08 10:08:56 -0500
committerNed Batchelder <ned@nedbatchelder.com>2015-02-08 10:08:56 -0500
commit8b605085e10910fc3b2f413bf7b6d0853f5e3015 (patch)
tree6f4e2ba0d63711c4f731606e600c5af96b945331 /coverage/debug.py
parentc5144455d0f571c002678d369ec32707c6304e1f (diff)
downloadpython-coveragepy-8b605085e10910fc3b2f413bf7b6d0853f5e3015.tar.gz
Useful debugging help.
Diffstat (limited to 'coverage/debug.py')
-rw-r--r--coverage/debug.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/coverage/debug.py b/coverage/debug.py
index 7431523..5b41bc4 100644
--- a/coverage/debug.py
+++ b/coverage/debug.py
@@ -17,6 +17,11 @@ class DebugControl(object):
self.options = options
self.output = output
+ def __repr__(self):
+ return "<DebugControl options=%r output=%r>" % (
+ self.options, self.output
+ )
+
def should(self, option):
"""Decide whether to output debug information in category `option`."""
return (option in self.options or option in FORCED_DEBUG)