1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 19:29:53 +03:00
aports/testing/py3-uvloop/tcp-tests.patch
Michał Polański 930da35fd2 testing/py3-uvloop: new aport
Ultra fast asyncio event loop
https://github.com/MagicStack/uvloop
2022-01-15 17:18:30 +01:00

15 lines
632 B
Diff

Adjust error message for musl-based systems.
--- a/tests/test_tcp.py
+++ b/tests/test_tcp.py
@@ -221,8 +221,8 @@ class _TestTCP:
addr = sock.getsockname()
with self.assertRaisesRegex(OSError,
- r"error while attempting.*\('127.*: "
- r"address already in use"):
+ r"\[Errno 98\] error while attempting.*\('127.*: "
+ r"address in use"):
self.loop.run_until_complete(
self.loop.create_server(object, *addr))