[arch-commits] Commit in python-aiobotocore/trunk (PKGBUILD pytest-event-loop.diff)
Chih-Hsuan Yen
yan12125 at archlinux.org
Thu Apr 30 09:47:37 UTC 2020
Date: Thursday, April 30, 2020 @ 09:47:36
Author: yan12125
Revision: 622429
python-aiobotocore: make tests pass with pytest-asyncio 0.11
Inspired by https://github.com/pytest-dev/pytest-asyncio/issues/38. I haven't investigated for the actual cause yet, though.
Added:
python-aiobotocore/trunk/pytest-event-loop.diff
Modified:
python-aiobotocore/trunk/PKGBUILD
------------------------+
PKGBUILD | 7 +++++--
pytest-event-loop.diff | 13 +++++++++++++
2 files changed, 18 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-04-30 08:36:43 UTC (rev 622428)
+++ PKGBUILD 2020-04-30 09:47:36 UTC (rev 622429)
@@ -11,13 +11,16 @@
depends=(python python-aiohttp python-botocore python-wrapt python-aioitertools)
checkdepends=(python-flask python-moto python-pytest python-pytest-asyncio)
source=("https://github.com/aio-libs/aiobotocore/archive/$pkgver/$pkgname-$pkgver.tar.gz"
- unittest-mock.diff)
+ unittest-mock.diff
+ pytest-event-loop.diff)
sha256sums=('ef9cae30ee8fa2b0b70e92a45d221d6ee7e77d2d7dc26a4e79ab13eaa1e7200d'
- 'ffb6b7e922632f4c2de5c93f61ab53e1730cfe151b0a2dde5dfce6260405866e')
+ 'ffb6b7e922632f4c2de5c93f61ab53e1730cfe151b0a2dde5dfce6260405866e'
+ '02700f174c58d754e501169737cf04f06f85f536b3bb4f44f422e213ab600e46')
prepare() {
cd $_pkgname-$pkgver
patch -Np1 -i ../unittest-mock.diff
+ patch -Np1 -i ../pytest-event-loop.diff
# Disable dependency pinning
# Upstream tracking issue: https://github.com/aio-libs/aiobotocore/issues/670
Added: pytest-event-loop.diff
===================================================================
--- pytest-event-loop.diff (rev 0)
+++ pytest-event-loop.diff 2020-04-30 09:47:36 UTC (rev 622429)
@@ -0,0 +1,13 @@
+diff --git a/tests/conftest.py b/tests/conftest.py
+index 4393d32..58d09ab 100644
+--- a/tests/conftest.py
++++ b/tests/conftest.py
+@@ -90,7 +90,7 @@ def aa_succeed_proxy_config(monkeypatch):
+
+
+ @pytest.fixture
+-def session():
++def session(event_loop):
+ session = aiobotocore.session.AioSession()
+ return session
+
More information about the arch-commits
mailing list