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/debug.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'coverage/debug.py') 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 "" % ( + 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) -- cgit v1.2.1