[arch-commits] Commit in python-pyzmq/trunk (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Wed Nov 11 11:43:57 UTC 2020
Date: Wednesday, November 11, 2020 @ 11:43:57
Author: foutrelis
Revision: 750758
Apply upstream fix for test hang
Added:
python-pyzmq/trunk/asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch
Modified:
python-pyzmq/trunk/PKGBUILD
---------------------------------------------------------+
PKGBUILD | 10 ++++-
asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch | 24 ++++++++++++++
2 files changed, 32 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-11 11:30:50 UTC (rev 750757)
+++ PKGBUILD 2020-11-11 11:43:57 UTC (rev 750758)
@@ -13,11 +13,17 @@
'python-pytest' 'python2-pytest' 'cython' 'cython2')
#source=("https://github.com/zeromq/pyzmq/downloads/pyzmq-$pkgver.tar.gz")
#source=("https://pypi.python.org/packages/source/p/pyzmq/pyzmq-$pkgver.tar.gz")
-source=("https://files.pythonhosted.org/packages/source/p/pyzmq/pyzmq-$pkgver.tar.gz")
-md5sums=('2833bd5397e4069f63ad1f9f291f1f70')
+source=("https://files.pythonhosted.org/packages/source/p/pyzmq/pyzmq-$pkgver.tar.gz"
+ asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch)
+md5sums=('2833bd5397e4069f63ad1f9f291f1f70'
+ '0a2106785a843c3f99411515b03f42a9')
prepare() {
cd "$srcdir"
+
+ # https://github.com/zeromq/pyzmq/issues/1418
+ patch -Np1 -d pyzmq-${pkgver} <asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch
+
cp -a pyzmq-${pkgver} py2zmq-${pkgver}
}
Added: asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch
===================================================================
--- asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch (rev 0)
+++ asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch 2020-11-11 11:43:57 UTC (rev 750758)
@@ -0,0 +1,24 @@
+From afd72820946f544790c6f70d90ba50eb29f1c6e1 Mon Sep 17 00:00:00 2001
+From: Min RK <benjaminrk at gmail.com>
+Date: Wed, 9 Sep 2020 10:16:36 +0200
+Subject: [PATCH] asyncio: wait for POLLOUT on sender in can_connect
+
+matches login in thread, because POLLOUT will only be set if connection is allowed
+---
+ zmq/tests/asyncio/_test_asyncio.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/zmq/tests/asyncio/_test_asyncio.py b/zmq/tests/asyncio/_test_asyncio.py
+index 335913f3..d631e900 100644
+--- a/zmq/tests/asyncio/_test_asyncio.py
++++ b/zmq/tests/asyncio/_test_asyncio.py
+@@ -463,7 +463,8 @@ def go():
+ port = server.bind_to_random_port(iface)
+ client.connect("%s:%i" % (iface, port))
+ msg = [b"Hello World"]
+- yield from server.send_multipart(msg)
++ if (yield from server.poll(1000, zmq.POLLOUT)):
++ yield from server.send_multipart(msg)
+ if (yield from client.poll(1000)):
+ rcvd_msg = yield from client.recv_multipart()
+ self.assertEqual(rcvd_msg, msg)
More information about the arch-commits
mailing list