summaryrefslogtreecommitdiff
path: root/coverage/control.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2014-11-12 06:28:12 -0500
committerNed Batchelder <ned@nedbatchelder.com>2014-11-12 06:28:12 -0500
commit2bfb7a99063911fd17d16bf0dc304546cb7b720d (patch)
treea6b5cc008b7715afcbc1673b8d4648581b4472a0 /coverage/control.py
parent81f5697e7cb2f5a064fd891617c0c8caf5ab21d9 (diff)
downloadpython-coveragepy-git-2bfb7a99063911fd17d16bf0dc304546cb7b720d.tar.gz
Clean up some plugin tests.
Diffstat (limited to 'coverage/control.py')
-rw-r--r--coverage/control.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/coverage/control.py b/coverage/control.py
index d2110552..1191b9eb 100644
--- a/coverage/control.py
+++ b/coverage/control.py
@@ -9,7 +9,7 @@ from coverage.collector import Collector
from coverage.config import CoverageConfig
from coverage.data import CoverageData
from coverage.debug import DebugControl
-from coverage.plugin import Plugins, plugin_implements
+from coverage.plugin import CoveragePlugin, Plugins, overrides
from coverage.files import FileLocator, TreeMatcher, FnmatchMatcher
from coverage.files import PathAliases, find_python_files, prep_patterns
from coverage.html import HtmlReporter
@@ -179,7 +179,7 @@ class Coverage(object):
self.file_tracers = []
for plugin in self.plugins:
- if plugin_implements(plugin, "file_tracer"):
+ if overrides(plugin, "file_tracer", CoveragePlugin):
self.file_tracers.append(plugin)
self.file_tracers.append(None) # The Python case.
@@ -354,7 +354,6 @@ class Coverage(object):
# Try the plugins, see if they have an opinion about the file.
for plugin in self.file_tracers:
if plugin:
- #plugin.trace_judge(disp)
file_tracer = plugin.file_tracer(canonical)
if file_tracer is not None:
file_tracer.plugin_name = plugin.plugin_name