Skip to content

Commit 7febc6a

Browse files
committed
fix: specific files to include/omit should match even with relative files #1604.
1 parent 3344a78 commit 7febc6a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

coverage/files.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,8 @@ def prep_patterns(patterns: Iterable[str]) -> List[str]:
209209
"""
210210
prepped = []
211211
for p in patterns or []:
212-
if p.startswith(("*", "?")):
213-
prepped.append(p)
214-
else:
212+
prepped.append(p)
213+
if not p.startswith(("*", "?")):
215214
prepped.append(abs_file(p))
216215
return prepped
217216

0 commit comments

Comments
 (0)