diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2012-08-30 23:16:41 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2012-08-30 23:16:41 -0400 |
commit | 79382fd0aef31418c91769b60ccfb7abd7775e06 (patch) | |
tree | d53dfa2c33b88a0187f461f6e2bee689e882fac4 /coverage/collector.py | |
parent | eb190ff7bc2ed15ccb635e875e93e9e2ea356492 (diff) | |
download | python-coveragepy-git-79382fd0aef31418c91769b60ccfb7abd7775e06.tar.gz |
If fullcoverage is run with the wrong tracer, make it apparent.
Diffstat (limited to 'coverage/collector.py')
-rw-r--r-- | coverage/collector.py | 7 |
1 files changed, 6 insertions, 1 deletions
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. |