Make three xfails non-strict (close RHBZ#2158175)
This commit is contained in:
parent
e297306d52
commit
eba0e502aa
|
@ -0,0 +1,56 @@
|
|||
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()
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
Name: python-aiohttp
|
||||
Version: 3.8.3
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Summary: Python HTTP client/server for asyncio
|
||||
|
||||
License: Apache-2.0
|
||||
|
@ -13,6 +13,12 @@ Source0: %{url}/archive/v%{version}/aiohttp-%{version}.tar.gz
|
|||
|
||||
# downstream only patch
|
||||
Patch: 0001-Unbundle-llhttp.patch
|
||||
# [3.8] Make the 3.10 related xfails non-strict
|
||||
# https://github.com/aio-libs/aiohttp/pull/7178
|
||||
# Fixes:
|
||||
# python-aiohttp: FTBFS in Fedora 36, 37, and 38/Rawhide
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=2158175
|
||||
Patch: %{url}/pull/7178.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
|
||||
|
@ -134,6 +140,9 @@ k="${k-}${k+ and }not test_tcp_connector_fingerprint_fail[pyloop]"
|
|||
%doc README.rst
|
||||
|
||||
%changelog
|
||||
* Fri Jan 20 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 3.8.3-6
|
||||
- Make three xfails non-strict (close RHBZ#2158175)
|
||||
|
||||
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.3-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
|
|
Loading…
Reference in New Issue