From 5f335f063449a359d855546fc3d439f24f84d466 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Mon, 9 Feb 2015 09:41:28 -0500 Subject: Plugin support is now only in the CTracer, not in the PyTracer. --- coverage/control.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'coverage/control.py') 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 -- cgit v1.2.1