diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2013-04-21 17:17:45 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2013-04-21 17:17:45 -0400 |
commit | 25e2807b018d54a70b35e44261ab5a6265348d27 (patch) | |
tree | 3c363afd6ff7a388a2c476c8afd5f70c964b72b4 /tests/test_oddball.py | |
parent | a206d43e09b841e240c8fc547b22f613dc5eabcd (diff) | |
download | python-coveragepy-git-25e2807b018d54a70b35e44261ab5a6265348d27.tar.gz |
Tweaks to Matt's merged pull request.
Diffstat (limited to 'tests/test_oddball.py')
-rw-r--r-- | tests/test_oddball.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/test_oddball.py b/tests/test_oddball.py index f136eb49..3352a0cf 100644 --- a/tests/test_oddball.py +++ b/tests/test_oddball.py @@ -308,11 +308,10 @@ class ExceptionTest(CoverageTest): for f, llist in lines.items(): # f is a path to a python module, so we drop the '.py' to get # a callname - callname = os.path.basename(f)[:-3] - if callname not in callnames: - # ignore this file. - continue - clean_lines[os.path.basename(f)] = llist + basename = os.path.basename(f) + assert basename.endswith(".py") + if basename[:-3] in callnames: + clean_lines[basename] = llist self.assertEqual(clean_lines, lines_expected) |