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 | cc3a20140e4bd1472be4ce288a379c923ef6ff39 (patch) | |
| tree | 4030060bbfd973725d59fb31ee48f4d997158539 /tests/plugin2.py | |
| parent | da348524fbe58b6897ad3b592755dad19fc28f36 (diff) | |
| download | python-coveragepy-cc3a20140e4bd1472be4ce288a379c923ef6ff39.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 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'] |
