diff options
author | Ned Batchelder <nedbat@gmail.com> | 2013-04-21 17:04:10 -0400 |
---|---|---|
committer | Ned Batchelder <nedbat@gmail.com> | 2013-04-21 17:04:10 -0400 |
commit | a206d43e09b841e240c8fc547b22f613dc5eabcd (patch) | |
tree | 10cb72dbbacb00da728a202f52c579f3e1fd7716 /tests/test_oddball.py | |
parent | 70f663dc0ae6f8e663c0e048796f837cf0ef2983 (diff) | |
parent | 82c4c9f038bce0635ee565f80953c9fa9ff61dfe (diff) | |
download | python-coveragepy-git-a206d43e09b841e240c8fc547b22f613dc5eabcd.tar.gz |
Merged in desmaj/coverage.py (pull request #17)
Removed redundant code; Changed a setup.py test to ensure that the proper setup.py is imported; Changed the 'oddball' tests to use a filename whitelist instead of a blacklist (so that tests run better under instrumental)
Diffstat (limited to 'tests/test_oddball.py')
-rw-r--r-- | tests/test_oddball.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_oddball.py b/tests/test_oddball.py index 60fab48f..f136eb49 100644 --- a/tests/test_oddball.py +++ b/tests/test_oddball.py @@ -306,7 +306,10 @@ class ExceptionTest(CoverageTest): lines = cov.data.line_data() clean_lines = {} for f, llist in lines.items(): - if f == __file__: + # 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 |