summaryrefslogtreecommitdiff
path: root/tests/plugin2.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-05-25 14:33:25 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-05-25 14:33:25 -0400
commitcc3a20140e4bd1472be4ce288a379c923ef6ff39 (patch)
tree4030060bbfd973725d59fb31ee48f4d997158539 /tests/plugin2.py
parentda348524fbe58b6897ad3b592755dad19fc28f36 (diff)
downloadpython-coveragepy-cc3a20140e4bd1472be4ce288a379c923ef6ff39.tar.gz
Normalize measured data's filenames before adding to data.
Diffstat (limited to 'tests/plugin2.py')
-rw-r--r--tests/plugin2.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/plugin2.py b/tests/plugin2.py
index 658ee22..70d2524 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']