Compare commits

...

2 Commits

Author SHA1 Message Date
Benjamin A. Beasley a20ce50221 Update to 3.8.4 (close RHBZ#2169212) 2023-02-14 13:32:11 -05:00
Benjamin A. Beasley 50c9639496 Make three xfails non-strict (close RHBZ#2158175) 2023-02-14 13:32:08 -05:00
4 changed files with 72 additions and 3 deletions

1
.gitignore vendored
View File

@ -72,3 +72,4 @@
/aiohttp-3.8.0.tar.gz
/aiohttp-3.8.1.tar.gz
/aiohttp-3.8.3.tar.gz
/aiohttp-3.8.4.tar.gz

56
7178.patch Normal file
View File

@ -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()

View File

@ -1,8 +1,8 @@
%bcond_without tests
Name: python-aiohttp
Version: 3.8.3
Release: 4%{?dist}
Version: 3.8.4
Release: 1%{?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,12 @@ k="${k-}${k+ and }not test_tcp_connector_fingerprint_fail[pyloop]"
%doc README.rst
%changelog
* Mon Feb 13 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 3.8.4-1
- Update to 3.8.4 (close RHBZ#2169212)
* Fri Jan 20 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 3.8.3-5
- Make three xfails non-strict (close RHBZ#2158175)
* Sat Dec 03 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 3.8.3-4
- Stop patching out python-re-assert; it is now in EPEL9

View File

@ -1 +1 @@
SHA512 (aiohttp-3.8.3.tar.gz) = b819d8b3c4559e1589d6d05dbab6c27195667994d9371e40ea59146eb0ba57280ba2d872515a133b64b7918148b7200eb55a807eac022954b4e1b4228b7496a5
SHA512 (aiohttp-3.8.4.tar.gz) = 8b39bb7eee19a38985ca0c3bf8d73458dce9af870ac067d5b9ee1957e88c57d75e185e34fc8fc751a78440dce0f4333a101be844969beaa4ea9cc3fa3e0d59d4