summaryrefslogtreecommitdiff
path: root/tests/plugin1.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2014-11-24 20:30:53 -0500
committerNed Batchelder <ned@nedbatchelder.com>2014-11-24 20:30:53 -0500
commitb0a0f00a433d7c3467d07ce7cea4cfbaaa6ae49e (patch)
tree34c48b1b92baf9ae9e64282ec38e793e2c61423d /tests/plugin1.py
parent4354d6ee80c81d390052c15092c7c51f2318f2f6 (diff)
downloadpython-coveragepy-git-b0a0f00a433d7c3467d07ce7cea4cfbaaa6ae49e.tar.gz
Change how dynamic source filenames work in plugins.
Diffstat (limited to 'tests/plugin1.py')
-rw-r--r--tests/plugin1.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/plugin1.py b/tests/plugin1.py
index 9401e327..21e64aeb 100644
--- a/tests/plugin1.py
+++ b/tests/plugin1.py
@@ -1,4 +1,4 @@
-"""Plugins for test_plugins.py to import."""
+"""A plugin for test_plugins.py to import."""
import os.path
@@ -12,8 +12,7 @@ class Plugin(coverage.CoveragePlugin):
def file_tracer(self, filename):
"""Trace only files named xyz.py"""
if "xyz.py" in filename:
- file_tracer = FileTracer(filename)
- return file_tracer
+ return FileTracer(filename)
def file_reporter(self, filename):
return FileReporter(filename)