From 79382fd0aef31418c91769b60ccfb7abd7775e06 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 30 Aug 2012 23:16:41 -0400 Subject: If fullcoverage is run with the wrong tracer, make it apparent. --- coverage/collector.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'coverage/collector.py') diff --git a/coverage/collector.py b/coverage/collector.py index 743a03e0..24c845ba 100644 --- a/coverage/collector.py +++ b/coverage/collector.py @@ -260,7 +260,12 @@ class Collector(object): for args in traces0: (frame, event, arg), lineno = args - fn(frame, event, arg, lineno=lineno) + try: + fn(frame, event, arg, lineno=lineno) + except TypeError: + raise Exception( + "fullcoverage must be run with the C trace function." + ) # Install our installation tracer in threading, to jump start other # threads. -- cgit v1.2.1