summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/modules/plugins/a_plugin.py2
-rw-r--r--tests/modules/plugins/another.py2
-rw-r--r--tests/test_plugins.py2
3 files changed, 5 insertions, 1 deletions
diff --git a/tests/modules/plugins/a_plugin.py b/tests/modules/plugins/a_plugin.py
index 2a9910d0..0cc96e5a 100644
--- a/tests/modules/plugins/a_plugin.py
+++ b/tests/modules/plugins/a_plugin.py
@@ -2,8 +2,10 @@
from coverage import CoveragePlugin
+
class Plugin(CoveragePlugin):
pass
+
def coverage_init(reg, options):
reg.add_file_tracer(Plugin())
diff --git a/tests/modules/plugins/another.py b/tests/modules/plugins/another.py
index 096d3b9d..80902d34 100644
--- a/tests/modules/plugins/another.py
+++ b/tests/modules/plugins/another.py
@@ -5,8 +5,10 @@
from coverage import CoveragePlugin
+
class Plugin(CoveragePlugin):
pass
+
def coverage_init(reg, options):
reg.add_file_tracer(Plugin())
diff --git a/tests/test_plugins.py b/tests/test_plugins.py
index 5218f6c9..686dcf99 100644
--- a/tests/test_plugins.py
+++ b/tests/test_plugins.py
@@ -459,7 +459,7 @@ class GoodPluginTest(FileTracerTest):
for snip in [
'filename="bar_4.html" line-rate="0.5" name="bar_4.html"',
'filename="foo_7.html" line-rate="0.2857" name="foo_7.html"',
- ]:
+ ]:
self.assertIn(snip, xml)
def test_defer_to_python(self):