diff --git a/tests/test_client_functional.py b/tests/test_client_functional.py index b987d7bf18b..395ddbd1405 100644 --- a/tests/test_client_functional.py +++ b/tests/test_client_functional.py @@ -2487,7 +2487,7 @@ async def handler_request(request): app.router.add_get("/redirect", handler_request) client = await aiohttp_client(app) - with pytest.raises(InvalidRedirectURL, match=fr"^{error_message_url} - [a-zA-Z]+"): + with pytest.raises(InvalidRedirectURL, match=rf"^{error_message_url} - [a-zA-Z]+"): await client.get("/redirect")