[arch-commits] Commit in nvchecker/trunk (PKGBUILD pytest-asyncio-0.14.diff)

Chih-Hsuan Yen yan12125 at archlinux.org
Wed Jul 1 16:15:51 UTC 2020


    Date: Wednesday, July 1, 2020 @ 16:15:50
  Author: yan12125
Revision: 657317

nvchecker: add a patch to work-around test suite hang

Ref: https://github.com/lilydjwg/nvchecker/issues/129

Added:
  nvchecker/trunk/pytest-asyncio-0.14.diff
Modified:
  nvchecker/trunk/PKGBUILD

--------------------------+
 PKGBUILD                 |   11 +++++++++--
 pytest-asyncio-0.14.diff |   13 +++++++++++++
 2 files changed, 22 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-01 16:03:40 UTC (rev 657316)
+++ PKGBUILD	2020-07-01 16:15:50 UTC (rev 657317)
@@ -19,9 +19,16 @@
   'mercurial: for VCS sources'
   'subversion: for VCS sources'
 )
-source=("$pkgname-$pkgver.tar.gz::https://github.com/lilydjwg/nvchecker/archive/$_commit.tar.gz")
-sha512sums=('476ec6bf8ef20255b685720fa501c0c672a0d6a32d0cd5bb1e6458a00236201dad8ff2a9d0d2a64365aebb4d3d2dc089a7cfc2bd84923f6ec9ecb7114322327c')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/lilydjwg/nvchecker/archive/$_commit.tar.gz"
+        "pytest-asyncio-0.14.diff")
+sha512sums=('476ec6bf8ef20255b685720fa501c0c672a0d6a32d0cd5bb1e6458a00236201dad8ff2a9d0d2a64365aebb4d3d2dc089a7cfc2bd84923f6ec9ecb7114322327c'
+            '442176e351ba1c3937fc98e2a97b8ceab59f340d438d9d59aa2c156b299061b945f2a6a5f07b125138d347ff1cc1db4623ee7043469eaf25634628aa0cb02320')
 
+prepare() {
+  cd nvchecker-$_commit
+  patch -Np1 -i ../pytest-asyncio-0.14.diff
+}
+
 build() {
   cd nvchecker-$_commit
   python setup.py build

Added: pytest-asyncio-0.14.diff
===================================================================
--- pytest-asyncio-0.14.diff	                        (rev 0)
+++ pytest-asyncio-0.14.diff	2020-07-01 16:15:50 UTC (rev 657317)
@@ -0,0 +1,13 @@
+diff --git a/tests/conftest.py b/tests/conftest.py
+index bddf44a..daae169 100644
+--- a/tests/conftest.py
++++ b/tests/conftest.py
+@@ -54,7 +54,7 @@ async def get_version():
+ 
+   return __call__
+ 
+- at pytest.fixture(scope="module")
++ at pytest.fixture(scope="session")
+ def event_loop(request):
+   """Override pytest-asyncio's event_loop fixture,
+      Don't create an instance of the default event loop for each test case.



More information about the arch-commits mailing list