diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2014-11-24 20:30:53 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2014-11-24 20:30:53 -0500 |
commit | fb9b49123c5a528bec55f2865b1730414d513559 (patch) | |
tree | 9623577ff2201ffd956d3667ce7048177af8c21d /tests/plugin1.py | |
parent | f9adb85a13c808aec50746d8db37a642c9a266ed (diff) | |
download | python-coveragepy-fb9b49123c5a528bec55f2865b1730414d513559.tar.gz |
Change how dynamic source filenames work in plugins.
Diffstat (limited to 'tests/plugin1.py')
-rw-r--r-- | tests/plugin1.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/plugin1.py b/tests/plugin1.py index 9401e32..21e64ae 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) |