From 62f92393b057fc94cf1fc259cf1e6ca8a8c4a1e7 Mon Sep 17 00:00:00 2001 From: Alexander Shadchin Date: Tue, 13 Aug 2024 17:18:25 +0300 Subject: [PATCH] Fix test_create_server_4 with Python 3.12.5 (#614) After https://github.com/python/cpython/issues/121913 error message `[errno 98] address already in use` --- tests/test_tcp.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_tcp.py b/tests/test_tcp.py index 812e62b..d7a73fb 100644 --- a/tests/test_tcp.py +++ b/tests/test_tcp.py @@ -248,8 +248,9 @@ class _TestTCP: addr = sock.getsockname() with self.assertRaisesRegex(OSError, - r"error while attempting.*\('127.*: " - r"address( already)? in use"): + r"error while attempting.*\('127.*:" + r"( \[errno \d+\])? address" + r"( already)? in use"): self.loop.run_until_complete( self.loop.create_server(object, *addr))