mirror of https://github.com/MagicStack/uvloop.git
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`
This commit is contained in:
parent
6c770dc3fb
commit
62f92393b0
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue