Commits

Ned Batchelder committed ed4d699

If fullcoverage is run with the wrong tracer, make it apparent.

Comments (0)

Files changed (1)

coverage/collector.py

 
         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.