Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 62f9239

Browse files
Fix test_create_server_4 with Python 3.12.5 (#614)
After python/cpython#121913 error message `[errno 98] address already in use`
1 parent 6c770dc commit 62f9239

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎tests/test_tcp.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,9 @@ def test_create_server_4(self):
248248
addr = sock.getsockname()
249249

250250
with self.assertRaisesRegex(OSError,
251-
r"error while attempting.*\('127.*: "
252-
r"address( already)? in use"):
251+
r"error while attempting.*\('127.*:"
252+
r"( \[errno \d+\])? address"
253+
r"( already)? in use"):
253254

254255
self.loop.run_until_complete(
255256
self.loop.create_server(object, *addr))

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /