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 | 5f335f063449a359d855546fc3d439f24f84d466 (patch) | |
tree | b2b8917a96c622dfa53a4795d38637797b24c4c8 /coverage/control.py | |
parent | b681d98fbd7b880bfaa670429db6f445f3a5fbd0 (diff) | |
download | python-coveragepy-git-5f335f063449a359d855546fc3d439f24f84d466.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 1b21c3bd..bb26b785 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 |