Skip to content

Commit bb27eb6

Browse files
committed
test: this loop never finishes, and that's fine
Because the last pattern in G2RX_TOKENS is ".", so it always matches.
1 parent 8862924 commit bb27eb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coverage/files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def _glob_to_regex(pattern):
309309
path_rx = []
310310
pos = 0
311311
while pos < len(pattern):
312-
for rx, sub in G2RX_TOKENS:
312+
for rx, sub in G2RX_TOKENS: # pragma: always breaks
313313
m = rx.match(pattern, pos=pos)
314314
if m:
315315
if sub is None:

0 commit comments

Comments
 (0)