Skip to content

Commit 45d41ed

Browse files
committed
Fix invalid escape sequences in test_http
1 parent 4be59d1 commit 45d41ed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/util/test_http.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ def test_requests_with_retry(caplog):
2020

2121
assert caplog.messages == [
2222
"Starting new HTTPS connection (1): example.test:443",
23-
Matches("Incremented Retry.*Retry\(total=1"),
24-
Matches("Retrying.*total=1.*Failed to (establish a new connection|resolve)"),
23+
Matches(r"Incremented Retry.*Retry\(total=1"),
24+
Matches(r"Retrying.*total=1.*Failed to (establish a new connection|resolve)"),
2525
"Starting new HTTPS connection (2): example.test:443",
26-
Matches("Incremented Retry.*Retry\(total=0"),
27-
Matches("Retrying.*total=0.*Failed to (establish a new connection|resolve)"),
26+
Matches(r"Incremented Retry.*Retry\(total=0"),
27+
Matches(r"Retrying.*total=0.*Failed to (establish a new connection|resolve)"),
2828
"Starting new HTTPS connection (3): example.test:443",
2929
]
3030

0 commit comments

Comments
 (0)