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/debug.py | |
parent | 7d95e303613cfbbc9067f4813c641c61aa251dc8 (diff) | |
download | python-coveragepy-git-a2331114926f37823f0dc45dc44308a94c0d454e.tar.gz |
Useful debugging help.
Diffstat (limited to 'coverage/debug.py')
-rw-r--r-- | coverage/debug.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/coverage/debug.py b/coverage/debug.py index 74315231..5b41bc40 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) |