Skip to content

Commit

Permalink
Tweaks to Matt's merged pull request.
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Apr 21, 2013
1 parent a206d43 commit 25e2807
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Pablo Carballo
Guillaume Chazarain
David Christian
Marcus Cobden
Matthew Desmarais
Danek Duvall
Ben Finney
Martin Fuzzey
Expand Down
3 changes: 1 addition & 2 deletions coverage/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,8 @@ def prep_patterns(patterns):
If `patterns` is None, an empty list is returned.
"""
patterns = patterns or []
prepped = []
for p in patterns:
for p in patterns or []:
if p.startswith("*") or p.startswith("?"):
prepped.append(p)
else:
Expand Down
1 change: 1 addition & 0 deletions tests/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def test_metadata(self):

def test_more_metadata(self):
# Let's be sure we pick up our own setup.py
# CoverageTest.tearDown restores the original sys.path.
sys.path.insert(0, '')
from setup import setup_args

Expand Down
9 changes: 4 additions & 5 deletions tests/test_oddball.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,11 +308,10 @@ def doit(calls):
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)


Expand Down

0 comments on commit 25e2807

Please sign in to comment.