diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-02-09 09:41:28 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-02-09 09:41:28 -0500 |
commit | 674fbf7bfd2c60835cdc2213f2d901b97b304a8d (patch) | |
tree | ea331bc33c99f5dda81ee8b5eaf27f8efa204bd5 /coverage/control.py | |
parent | e6293b0f0d8a029489a5571f39f975021c2249e8 (diff) | |
download | python-coveragepy-674fbf7bfd2c60835cdc2213f2d901b97b304a8d.tar.gz |
Plugin support is now only in the CTracer, not in the PyTracer.
Diffstat (limited to 'coverage/control.py')
-rw-r--r-- | coverage/control.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/coverage/control.py b/coverage/control.py index 1b21c3b..bb26b78 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -227,6 +227,15 @@ class Coverage(object): concurrency=concurrency, ) + # Early warning if we aren't going to be able to support plugins. + if self.file_tracers and not self.collector.supports_plugins: + raise CoverageException( + "Plugin file tracers (%s) aren't supported with %s" % ( + ", ".join(ft.plugin_name for ft in self.file_tracers), + self.collector.tracer_name(), + ) + ) + # Suffixes are a bit tricky. We want to use the data suffix only when # collecting data, not when combining data. So we save it as # `self.run_suffix` now, and promote it to `self.data_suffix` if we |