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