Skip to content

Commit 6e55a83

Browse files
chore: use math.inf in route handling as max value (#986)
1 parent 241e06a commit 6e55a83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

playwright/_impl/_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def __init__(
212212
):
213213
self.matcher = matcher
214214
self.handler = handler
215-
self._times = times if times else 2 ** 32
215+
self._times = times if times else math.inf
216216
self._handled_count = 0
217217

218218
def matches(self, request_url: str) -> bool:

0 commit comments

Comments
 (0)