summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-08-10 07:35:50 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-08-10 07:35:50 -0400
commitb20497d2a8c11a6210e6925f9cad6d97ff7f713b (patch)
tree1af71021b0b9d28b922a2968adb90327c2f7e0f5 /tests
parent1bdc86a1bd524672cf5a55ec8c966b88ccc1b68d (diff)
downloadpython-coveragepy-git-b20497d2a8c11a6210e6925f9cad6d97ff7f713b.tar.gz
Add docstring for source_token_lines
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):