[arch-commits] Commit in python-aiohttp/trunk (PKGBUILD non-derpy-tests.patch)

Evangelos Foutras foutrelis at gemini.archlinux.org
Thu Dec 2 16:59:32 UTC 2021


    Date: Thursday, December 2, 2021 @ 16:59:31
  Author: foutrelis
Revision: 1062097

Un-xfail working tests

Added:
  python-aiohttp/trunk/non-derpy-tests.patch
Modified:
  python-aiohttp/trunk/PKGBUILD

-----------------------+
 PKGBUILD              |    5 +++
 non-derpy-tests.patch |   71 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-02 16:09:16 UTC (rev 1062096)
+++ PKGBUILD	2021-12-02 16:59:31 UTC (rev 1062097)
@@ -25,8 +25,10 @@
             'python-cchardet: for faster encoding detection'
             'python-brotli: for Brotli transfer-encodings support')
 source=(${pkgname}::"git+https://github.com/aio-libs/aiohttp#commit=${_gitcommit}"
+        non-derpy-tests.patch
         git+https://github.com/nodejs/llhttp.git)
 sha512sums=('SKIP'
+            'bb0a6b39f8200ef79d68cc5329c13814f60702a8fb929b1c0d64b5cff5602b6d0848fa2644b911bb637cfce0e235abf332f3769545dade4c52bfabd636369d55'
             'SKIP')
 
 pkgver() {
@@ -41,6 +43,9 @@
   git submodule update --recursive
   sed 's|.install-cython ||' -i Makefile
 
+  # If these tests are passing, who are we to judge
+  patch -Np1 -i ../non-derpy-tests.patch
+
   # This test fails with the error "coroutine 'BaseTestServer.close' was never
   # awaited", which does not appear to be a packaging issue
   sed -i '/test_aiohttp_request_coroutine/i @pytest.mark.xfail' tests/test_client_functional.py

Added: non-derpy-tests.patch
===================================================================
--- non-derpy-tests.patch	                        (rev 0)
+++ non-derpy-tests.patch	2021-12-02 16:59:31 UTC (rev 1062097)
@@ -0,0 +1,71 @@
+diff --git a/tests/test_client_request.py b/tests/test_client_request.py
+index 037b7f47b..be35afd1c 100644
+--- a/tests/test_client_request.py
++++ b/tests/test_client_request.py
+@@ -276,12 +276,6 @@ def test_host_header_ipv6_with_port(make_request) -> None:
+     assert req.headers["HOST"] == "[::2]:99"
+ 
+ 
+- at pytest.mark.xfail(
+-    PY_310,
+-    reason="No idea why ClientRequest() is constructed out of loop but "
+-    "it calls `asyncio.get_event_loop()`",
+-    raises=DeprecationWarning,
+-)
+ def test_default_loop(loop) -> None:
+     asyncio.set_event_loop(loop)
+     req = ClientRequest("get", URL("http://python.org/"))
+diff --git a/tests/test_proxy_functional.py b/tests/test_proxy_functional.py
+index 32dc4f6dc..fe5023257 100644
+--- a/tests/test_proxy_functional.py
++++ b/tests/test_proxy_functional.py
+@@ -125,7 +125,6 @@ def _pretend_asyncio_supports_tls_in_tls(
+     )
+ 
+ 
+- at secure_proxy_xfail_under_py310_linux(raises=ClientProxyConnectionError)
+ @pytest.mark.parametrize(
+     "web_server_endpoint_type",
+     (
+@@ -168,7 +167,6 @@ async def test_secure_https_proxy_absolute_path(
+     await asyncio.sleep(0.1)
+ 
+ 
+- at secure_proxy_xfail_under_py310_linux(raises=AssertionError)
+ @pytest.mark.xfail(
+     not PY_37,
+     raises=RuntimeError,
+diff --git a/tests/test_streams.py b/tests/test_streams.py
+index 764b377ff..648e24e7e 100644
+--- a/tests/test_streams.py
++++ b/tests/test_streams.py
+@@ -83,12 +83,6 @@ class TestStreamReader:
+         with pytest.raises(RuntimeError):
+             await stream._wait("test")
+ 
+-    @pytest.mark.xfail(
+-        PY_310,
+-        reason="No idea why ClientRequest() is constructed out of loop but "
+-        "it calls `asyncio.get_event_loop()`",
+-        raises=DeprecationWarning,
+-    )
+     def test_ctor_global_loop(self) -> None:
+         loop = asyncio.new_event_loop()
+         asyncio.set_event_loop(loop)
+diff --git a/tests/test_web_app.py b/tests/test_web_app.py
+index 8a1c2659a..c507a6311 100644
+--- a/tests/test_web_app.py
++++ b/tests/test_web_app.py
+@@ -40,12 +40,6 @@ async def test_set_loop() -> None:
+         assert app.loop is loop
+ 
+ 
+- at pytest.mark.xfail(
+-    PY_310,
+-    reason="No idea why _set_loop() is constructed out of loop "
+-    "but it calls `asyncio.get_event_loop()`",
+-    raises=DeprecationWarning,
+-)
+ def test_set_loop_default_loop() -> None:
+     loop = asyncio.new_event_loop()
+     asyncio.set_event_loop(loop)



More information about the arch-commits mailing list