[arch-commits] Commit in python-engineio/trunk (PKGBUILD py39.patch)
Evangelos Foutras
foutrelis at archlinux.org
Wed Nov 18 10:49:38 UTC 2020
Date: Wednesday, November 18, 2020 @ 10:49:38
Author: foutrelis
Revision: 757114
Fix tests with Python 3.9
Added:
python-engineio/trunk/py39.patch
Modified:
python-engineio/trunk/PKGBUILD
------------+
PKGBUILD | 14 +++++++++++---
py39.patch | 26 ++++++++++++++++++++++++++
2 files changed, 37 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-18 10:34:08 UTC (rev 757113)
+++ PKGBUILD 2020-11-18 10:49:38 UTC (rev 757114)
@@ -17,10 +17,18 @@
'python-urllib3' 'python-websocket-client' 'python-gevent' 'python-gevent-websocket' 'python-websockets')
checkdepends=('python-mock' 'python-pytest' 'python-pytest-runner')
options=('!makeflags')
-source=(https://github.com/miguelgrinberg/python-engineio/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha512sums=('712b7f9646d0a8aa470d0f373ccfa4baf4e37eba6583def4325037a33e066819f3dbcb8cc6544ba2878a784e8ca22f67f490a7aa18f6c8f45c660900a1946561')
-b2sums=('5b63d660ba82f94dd784f5aea7e651a05cf914049ab99f9aef36972efbe4978832f7225e7d77098d5319f437ac77216c44d11efa5f353745b8d4c285c24560e8')
+source=(https://github.com/miguelgrinberg/python-engineio/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz
+ py39.patch)
+sha512sums=('712b7f9646d0a8aa470d0f373ccfa4baf4e37eba6583def4325037a33e066819f3dbcb8cc6544ba2878a784e8ca22f67f490a7aa18f6c8f45c660900a1946561'
+ 'bdaf8f8f76c527a56000dac427c062b2be484381b3e1e05ec16a7c8f7b7fad8f07c16552c07dc08c002fb5067defa03de7dd8420e82289ea3ce836c9d88765dc')
+b2sums=('5b63d660ba82f94dd784f5aea7e651a05cf914049ab99f9aef36972efbe4978832f7225e7d77098d5319f437ac77216c44d11efa5f353745b8d4c285c24560e8'
+ '561bd0711b97c872b7f410a05f0bd5f65085eec27ee996b1491c9750d1bdc410ac38629a8717f1c5eb67897dd48da5664562d98e7a664271b1f65c4f6f4faac5')
+prepare() {
+ cd ${pkgname}-${pkgver}
+ patch -Np1 -i ../py39.patch
+}
+
build() {
cd ${pkgname}-${pkgver}
python setup.py build
Added: py39.patch
===================================================================
--- py39.patch (rev 0)
+++ py39.patch 2020-11-18 10:49:38 UTC (rev 757114)
@@ -0,0 +1,26 @@
+diff --git a/tests/asyncio/test_asyncio_client.py b/tests/asyncio/test_asyncio_client.py
+index d34fd05..c47238d 100644
+--- a/tests/asyncio/test_asyncio_client.py
++++ b/tests/asyncio/test_asyncio_client.py
+@@ -241,7 +241,7 @@ class TestAsyncClient(unittest.TestCase):
+
+ c = asyncio_client.AsyncClient()
+ c.start_background_task(foo, 'bar')
+- pending = asyncio.Task.all_tasks()
++ pending = asyncio.all_tasks(loop=asyncio.get_event_loop())
+ asyncio.get_event_loop().run_until_complete(asyncio.wait(pending))
+ assert r == ['bar']
+
+diff --git a/tests/asyncio/test_asyncio_server.py b/tests/asyncio/test_asyncio_server.py
+index 2faecca..5f9272a 100644
+--- a/tests/asyncio/test_asyncio_server.py
++++ b/tests/asyncio/test_asyncio_server.py
+@@ -1004,7 +1004,7 @@ class TestAsyncServer(unittest.TestCase):
+
+ s = asyncio_server.AsyncServer()
+ s.start_background_task(foo, 'bar')
+- pending = asyncio.Task.all_tasks()
++ pending = asyncio.all_tasks(loop=asyncio.get_event_loop())
+ asyncio.get_event_loop().run_until_complete(asyncio.wait(pending))
+ assert r == ['bar']
+
More information about the arch-commits
mailing list