diff --git a/python-aiohttp.changes b/python-aiohttp.changes index 75e6ad2..dcf0885 100644 --- a/python-aiohttp.changes +++ b/python-aiohttp.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Jul 28 08:16:17 UTC 2025 - Nico Krapp + +- Add remove-zlib-ng-test-dep.patch to remove python-zlib-ng test + dependency +- enable test_leaks again, works with limited threads + ------------------------------------------------------------------- Mon Jul 14 15:17:06 UTC 2025 - Dirk Müller diff --git a/python-aiohttp.spec b/python-aiohttp.spec index 888d677..f749eaf 100644 --- a/python-aiohttp.spec +++ b/python-aiohttp.spec @@ -29,6 +29,8 @@ Patch0: test_no_warnings_fix.patch # PATCH-FIX-OPENSUSE remove-isal-test-dep.patch -- daniel.garcia@suse.com # Remove python-isal dependency for testing. Patch1: remove-isal-test-dep.patch +# PATCH-FIX-OPENSUSE remove-zlib-ng-test-dep.patch +Patch2: remove-zlib-ng-test-dep.patch Requires: python-aiohappyeyeballs >= 2.5.0 Requires: python-aiosignal >= 1.4 Requires: python-attrs >= 17.3.0 @@ -73,7 +75,6 @@ BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module re-assert} BuildRequires: %{python_module time-machine} BuildRequires: %{python_module trustme} -BuildRequires: %{python_module zlib-ng} # /SECTION # SECTION docs %if %{with docs} @@ -141,8 +142,6 @@ rm -v tests/autobahn/test_autobahn.py rm -v tests/test_proxy_functional.py # Requires python-pytest-codspeed rm -v tests/test_benchmarks_* -# some tests from here hang with pycares 4.9 https://github.com/aio-libs/aiohttp/issues/11244 -rm -v tests/test_leaks.py # randomly fails on xdist splits single_runs="(test_run_app or test_web_runner)" diff --git a/remove-zlib-ng-test-dep.patch b/remove-zlib-ng-test-dep.patch new file mode 100644 index 0000000..1a0e1a3 --- /dev/null +++ b/remove-zlib-ng-test-dep.patch @@ -0,0 +1,30 @@ +Index: aiohttp-3.12.14/requirements/test.in +=================================================================== +--- aiohttp-3.12.14.orig/requirements/test.in ++++ aiohttp-3.12.14/requirements/test.in +@@ -17,4 +17,3 @@ re-assert + setuptools-git + trustme; platform_machine != "i686" # no 32-bit wheels + wait-for-it +-zlib_ng +Index: aiohttp-3.12.14/tests/conftest.py +=================================================================== +--- aiohttp-3.12.14.orig/tests/conftest.py ++++ aiohttp-3.12.14/tests/conftest.py +@@ -13,7 +13,6 @@ from unittest import mock + from uuid import uuid4 + + import pytest +-import zlib_ng.zlib_ng + from blockbuster import blockbuster_ctx + + from aiohttp import payload +@@ -330,7 +329,7 @@ def unused_port_socket() -> Generator[so + s.close() + + +-@pytest.fixture(params=[zlib, zlib_ng.zlib_ng]) ++@pytest.fixture(params=[zlib]) + def parametrize_zlib_backend( + request: pytest.FixtureRequest, + ) -> Generator[None, None, None]: