diff --git a/tests/test_tcp.py b/tests/test_tcp.py index 812e62b8..d7a73fbf 100644 --- a/tests/test_tcp.py +++ b/tests/test_tcp.py @@ -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))