summaryrefslogtreecommitdiff
path: root/tests/plugin1.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-07-05 11:07:11 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-07-05 11:07:11 -0400
commita9afb77456c4e658c25cb5f76abe611d1777cd8e (patch)
tree194c460e27b7ad7557811692c7ff5dcb26aabc99 /tests/plugin1.py
parent2f829835fc65bea053c884a6b97922c07edcf1ac (diff)
downloadpython-coveragepy-git-a9afb77456c4e658c25cb5f76abe611d1777cd8e.tar.gz
Change how plugins are initialized. No more Plugin. Now coverage_init.
Diffstat (limited to 'tests/plugin1.py')
-rw-r--r--tests/plugin1.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/plugin1.py b/tests/plugin1.py
index f9da35c8..5d3db856 100644
--- a/tests/plugin1.py
+++ b/tests/plugin1.py
@@ -44,3 +44,8 @@ class FileReporter(coverage.plugin.FileReporter):
def excluded_statements(self):
return set([])
+
+
+def coverage_init(reg, options):
+ """Called by coverage to initialize the plugins here."""
+ reg.add_file_tracer(Plugin(options))