diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-05 11:07:11 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-05 11:07:11 -0400 |
| commit | 152d22cfbae8a8371acabe35ae3de61fb31708d3 (patch) | |
| tree | 56527f16582dc7e3ae53f0591676443f7e93d583 /tests/plugin1.py | |
| parent | 08fa87e78191c2126bb441b95730e857da32b4c9 (diff) | |
| download | python-coveragepy-152d22cfbae8a8371acabe35ae3de61fb31708d3.tar.gz | |
Change how plugins are initialized. No more Plugin. Now coverage_init.
Diffstat (limited to 'tests/plugin1.py')
| -rw-r--r-- | tests/plugin1.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/plugin1.py b/tests/plugin1.py index f9da35c..5d3db85 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)) |
