diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2011-09-03 15:43:51 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2011-09-03 15:43:51 -0400 |
commit | f5a27f754d464c9b4d88396cbfd54ff15c891b8c (patch) | |
tree | 0bd8e51c3f03e23b2e4a9fcdb2b187df7997b4aa /test/test_process.py | |
parent | b07083717a4fb0717ebd070340cf97441fa8e515 (diff) | |
download | python-coveragepy-f5a27f754d464c9b4d88396cbfd54ff15c891b8c.tar.gz |
Fix the [paths] feature to actually work for reporting.
Diffstat (limited to 'test/test_process.py')
-rw-r--r-- | test/test_process.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_process.py b/test/test_process.py index ed9e89f..4cf5524 100644 --- a/test/test_process.py +++ b/test/test_process.py @@ -175,7 +175,9 @@ class ProcessTest(CoverageTest): data.read_file(".coverage") summary = data.summary(fullpath=True) self.assertEqual(len(summary), 1) - self.assertEqual(list(summary.keys())[0], os.path.normpath('src/x.py')) + actual = os.path.abspath(list(summary.keys())[0]) + expected = os.path.abspath('src/x.py') + self.assertEqual(actual, expected) self.assertEqual(list(summary.values())[0], 6) def test_missing_source_file(self): |