57 lines
2.5 KiB
Diff
57 lines
2.5 KiB
Diff
|
From 5718879cdb6a98bf48810a994b78bc02abaf3e07 Mon Sep 17 00:00:00 2001
|
||
|
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
|
||
|
Date: Fri, 20 Jan 2023 15:34:21 +0100
|
||
|
Subject: [PATCH] Make the 3.10 related xfails non-strict
|
||
|
|
||
|
We see xpasses in Fedora with Python 3.11.1 or 3.10.9:
|
||
|
|
||
|
=================================== FAILURES ===================================
|
||
|
__________________________ test_default_loop[pyloop] ___________________________
|
||
|
[XPASS(strict)] No idea why ClientRequest() is constructed out of loop but it calls `asyncio.get_event_loop()`
|
||
|
____________________ TestStreamReader.test_ctor_global_loop ____________________
|
||
|
[XPASS(strict)] No idea why ClientRequest() is constructed out of loop but it calls `asyncio.get_event_loop()`
|
||
|
__________________________ test_set_loop_default_loop __________________________
|
||
|
[XPASS(strict)] No idea why _set_loop() is constructed out of loop but it calls `asyncio.get_event_loop()`
|
||
|
---
|
||
|
tests/test_client_request.py | 1 +
|
||
|
tests/test_streams.py | 1 +
|
||
|
tests/test_web_app.py | 1 +
|
||
|
3 files changed, 3 insertions(+)
|
||
|
|
||
|
diff --git a/tests/test_client_request.py b/tests/test_client_request.py
|
||
|
index c822d0c020..96db8ac3b8 100644
|
||
|
--- a/tests/test_client_request.py
|
||
|
+++ b/tests/test_client_request.py
|
||
|
@@ -280,6 +280,7 @@ def test_host_header_ipv6_with_port(make_request) -> None:
|
||
|
reason="No idea why ClientRequest() is constructed out of loop but "
|
||
|
"it calls `asyncio.get_event_loop()`",
|
||
|
raises=DeprecationWarning,
|
||
|
+ strict=False,
|
||
|
)
|
||
|
def test_default_loop(loop) -> None:
|
||
|
asyncio.set_event_loop(loop)
|
||
|
diff --git a/tests/test_streams.py b/tests/test_streams.py
|
||
|
index 5ddc4c94dd..ca59654e91 100644
|
||
|
--- a/tests/test_streams.py
|
||
|
+++ b/tests/test_streams.py
|
||
|
@@ -88,6 +88,7 @@ async def test_create_waiter(self) -> None:
|
||
|
reason="No idea why ClientRequest() is constructed out of loop but "
|
||
|
"it calls `asyncio.get_event_loop()`",
|
||
|
raises=DeprecationWarning,
|
||
|
+ strict=False,
|
||
|
)
|
||
|
def test_ctor_global_loop(self) -> None:
|
||
|
loop = asyncio.new_event_loop()
|
||
|
diff --git a/tests/test_web_app.py b/tests/test_web_app.py
|
||
|
index 7501fba032..1f9b5234c4 100644
|
||
|
--- a/tests/test_web_app.py
|
||
|
+++ b/tests/test_web_app.py
|
||
|
@@ -44,6 +44,7 @@ async def test_set_loop() -> None:
|
||
|
reason="No idea why _set_loop() is constructed out of loop "
|
||
|
"but it calls `asyncio.get_event_loop()`",
|
||
|
raises=DeprecationWarning,
|
||
|
+ strict=False,
|
||
|
)
|
||
|
def test_set_loop_default_loop() -> None:
|
||
|
loop = asyncio.new_event_loop()
|