diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-03-01 12:27:11 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-03-01 12:27:11 -0500 |
commit | cd57713fbccddfc7e375c43165159642236969fd (patch) | |
tree | dab3d5440eadaf5f9855be331ab32dfc26a08c12 /tests/plugin2.py | |
parent | f99aa6617a80a6596c3fde908f5e2aabd5ed05bb (diff) | |
download | python-coveragepy-git-cd57713fbccddfc7e375c43165159642236969fd.tar.gz |
Absolute names in data, fixes Windows plugins, breaks data tests.
Diffstat (limited to 'tests/plugin2.py')
-rw-r--r-- | tests/plugin2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/plugin2.py b/tests/plugin2.py index 658ee221..1d5d9e9f 100644 --- a/tests/plugin2.py +++ b/tests/plugin2.py @@ -25,7 +25,7 @@ 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']) + return frame.f_locals['filename'] def line_number_range(self, frame): lineno = frame.f_locals['linenum'] |