From 82c4c9f038bce0635ee565f80953c9fa9ff61dfe Mon Sep 17 00:00:00 2001 From: desmaj Date: Mon, 18 Mar 2013 00:03:39 -0400 Subject: 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 --- tests/test_oddball.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/test_oddball.py') 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 -- cgit v1.2.1