Skip to content

Commit

Permalink
fix: specific files to include/omit should match even with relative f…
Browse files Browse the repository at this point in the history
…iles #1604.
  • Loading branch information
nedbat committed Apr 27, 2023
1 parent 3344a78 commit 7febc6a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions coverage/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,8 @@ def prep_patterns(patterns: Iterable[str]) -> List[str]:
"""
prepped = []
for p in patterns or []:
if p.startswith(("*", "?")):
prepped.append(p)
else:
prepped.append(p)
if not p.startswith(("*", "?")):
prepped.append(abs_file(p))
return prepped

Expand Down

0 comments on commit 7febc6a

Please sign in to comment.