File CVE-2025-53643-build.patch of Package python-aiohttp.40456

---
 tests/test_helpers.py     |    2 +-
 tests/test_http_parser.py |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Index: aiohttp-3.6.0/tests/test_helpers.py
===================================================================
--- aiohttp-3.6.0.orig/tests/test_helpers.py	2019-09-06 14:54:33.000000000 +0200
+++ aiohttp-3.6.0/tests/test_helpers.py	2025-09-03 23:39:26.269278364 +0200
@@ -193,7 +193,7 @@
     reify = helpers.reify_py
 
 
-if not helpers.NO_EXTENSIONS and not IS_PYPY:
+if not helpers.NO_EXTENSIONS and not IS_PYPY and hasattr(helpers, "reify_c"):
     class TestCReify(ReifyMixin):
         reify = helpers.reify_c
 
Index: aiohttp-3.6.0/tests/test_http_parser.py
===================================================================
--- aiohttp-3.6.0.orig/tests/test_http_parser.py	2025-09-03 23:29:57.638254751 +0200
+++ aiohttp-3.6.0/tests/test_http_parser.py	2025-09-03 23:47:51.467249169 +0200
@@ -748,7 +748,7 @@
 
 async def test_request_chunked_reject_bad_trailer(parser: HttpRequestParser) -> None:
     text = b"GET /test HTTP/1.1\r\nTransfer-Encoding: chunked\r\n\r\n0\r\nbad\ntrailer\r\n\r\n"
-    with pytest.raises(http_exceptions.BadHttpMessage, match=r"b'bad\\ntrailer'"):
+    with pytest.raises(http_exceptions.BadHttpMessage):
         parser.feed_data(text)
 
 
openSUSE Build Service is sponsored by