Skip to content

Commit

Permalink
Fix test_create_server_4 with Python 3.12.5 (#614)
Browse files Browse the repository at this point in the history
After python/cpython#121913 error message `[errno 98] address already in use`
  • Loading branch information
shadchin authored Aug 13, 2024
1 parent 6c770dc commit 62f9239
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_tcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,9 @@ def test_create_server_4(self):
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))
Expand Down

0 comments on commit 62f9239

Please sign in to comment.