Skip to content

Commit

Permalink
Fix test_create_server_4
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 11, 2024
1 parent 6c770dc commit da8c456
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_tcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ 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( already)? in use"):

self.loop.run_until_complete(
self.loop.create_server(object, *addr))
Expand Down

0 comments on commit da8c456

Please sign in to comment.