From bb27eb6c844204b979fe76f0f47c7869ef1c2362 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 8 Nov 2022 06:22:30 -0500 Subject: test: this loop never finishes, and that's fine Because the last pattern in G2RX_TOKENS is ".", so it always matches. --- coverage/files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coverage/files.py') diff --git a/coverage/files.py b/coverage/files.py index 76ecbef9..82f4df31 100644 --- a/coverage/files.py +++ b/coverage/files.py @@ -309,7 +309,7 @@ def _glob_to_regex(pattern): path_rx = [] pos = 0 while pos < len(pattern): - for rx, sub in G2RX_TOKENS: + for rx, sub in G2RX_TOKENS: # pragma: always breaks m = rx.match(pattern, pos=pos) if m: if sub is None: -- cgit v1.2.1