diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-05-25 14:33:25 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-05-25 14:33:25 -0400 |
commit | 045b3dd74ec0957a65efb12c73f87b320548200f (patch) | |
tree | db6920a3d04d791d2100aba1d264371e9c6337f1 /tests/plugin2.py | |
parent | c0c207d05ef6f47379142972195e3b6d653e57f0 (diff) | |
download | python-coveragepy-git-045b3dd74ec0957a65efb12c73f87b320548200f.tar.gz |
Normalize measured data's filenames before adding to data.
Diffstat (limited to 'tests/plugin2.py')
-rw-r--r-- | tests/plugin2.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/plugin2.py b/tests/plugin2.py index 658ee221..70d25249 100644 --- a/tests/plugin2.py +++ b/tests/plugin2.py @@ -25,7 +25,8 @@ class RenderFileTracer(coverage.plugin.FileTracer): def dynamic_source_filename(self, filename, frame): if frame.f_code.co_name != "render": return None - return os.path.abspath(frame.f_locals['filename']) + source_filename = os.path.abspath(frame.f_locals['filename']) + return source_filename def line_number_range(self, frame): lineno = frame.f_locals['linenum'] |