summaryrefslogtreecommitdiff
path: root/tests/modules/plugins/another.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/modules/plugins/another.py
parent2f829835fc65bea053c884a6b97922c07edcf1ac (diff)
downloadpython-coveragepy-git-a9afb77456c4e658c25cb5f76abe611d1777cd8e.tar.gz
Change how plugins are initialized. No more Plugin. Now coverage_init.
Diffstat (limited to 'tests/modules/plugins/another.py')
-rw-r--r--tests/modules/plugins/another.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/modules/plugins/another.py b/tests/modules/plugins/another.py
index 2ff84dac..65627515 100644
--- a/tests/modules/plugins/another.py
+++ b/tests/modules/plugins/another.py
@@ -4,3 +4,6 @@ from coverage import CoveragePlugin
class Plugin(CoveragePlugin):
pass
+
+def coverage_init(reg, options):
+ reg.add_file_tracer(Plugin(options))