Skip to content
Snippets Groups Projects
Commit 2360e9d5 authored by Patrycja Rosa's avatar Patrycja Rosa :cat: Committed by alice
Browse files

community/py3-trio: fix build

parent a449b413
No related branches found
No related tags found
1 merge request!46251community/py3-t*: split -pyc
Pipeline #161105 skipped
...@@ -25,7 +25,9 @@ checkdepends=" ...@@ -25,7 +25,9 @@ checkdepends="
py3-trustme py3-trustme
" "
subpackages="$pkgname-pyc" subpackages="$pkgname-pyc"
source="https://pypi.python.org/packages/source/t/trio/trio-$pkgver.tar.gz" source="https://pypi.python.org/packages/source/t/trio/trio-$pkgver.tar.gz
fix-musl-getaddrinfo.patch
"
builddir="$srcdir/trio-$pkgver" builddir="$srcdir/trio-$pkgver"
case "$CARCH" in case "$CARCH" in
...@@ -46,4 +48,5 @@ package() { ...@@ -46,4 +48,5 @@ package() {
sha512sums=" sha512sums="
146b18886c9a1483c35c2469017201c4ce5e74bcd1be670150ab9ec7c4ad51dd416ca201f911cf18a27391280a00580718a05b17b6470a646c477e4c626c8da4 trio-0.21.0.tar.gz 146b18886c9a1483c35c2469017201c4ce5e74bcd1be670150ab9ec7c4ad51dd416ca201f911cf18a27391280a00580718a05b17b6470a646c477e4c626c8da4 trio-0.21.0.tar.gz
a888e81ac513564e66e80143b615f608313d61ff7131b9afb0f698deb56761c91373059a1c87ecad0e758952912302af8937087a30dbda2c93f94860f3ff34e2 fix-musl-getaddrinfo.patch
" "
diff --git a/trio/tests/test_socket.py b/trio/tests/test_socket.py
index d891041..3f11189 100644
--- a/trio/tests/test_socket.py
+++ b/trio/tests/test_socket.py
@@ -548,6 +548,8 @@ async def test_SocketType_resolve(socket_type, addrs):
# Linux
if hasattr(tsocket, "EAI_ADDRFAMILY"):
expected_errnos.add(tsocket.EAI_ADDRFAMILY)
+ # Linux+musl
+ expected_errnos.add(tsocket.EAI_NODATA)
assert excinfo.value.errno in expected_errnos
# A family where we know nothing about the addresses, so should just
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment