15
0

Accepting request 1296060 from home:nkrapp:branches:devel:languages:python

- Add remove-zlib-ng-test-dep.patch to remove python-zlib-ng test
  dependency

OBS-URL: https://build.opensuse.org/request/show/1296060
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiohttp?expand=0&rev=153
This commit is contained in:
2025-07-28 10:39:53 +00:00
committed by Git OBS Bridge
parent d2d30a6860
commit 064f71d780
3 changed files with 40 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jul 28 08:16:17 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
- Add remove-zlib-ng-test-dep.patch to remove python-zlib-ng test
dependency
-------------------------------------------------------------------
Mon Jul 14 15:17:06 UTC 2025 - Dirk Müller <dmueller@suse.com>

View File

@@ -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}
@@ -134,6 +135,8 @@ donttest="test_aiohttp_request_coroutine or test_mark_formdata_as_processed or t
donttest+=" or test_tcp_connector_ssl_shutdown_timeout"
# most probably https://github.com/cbornet/blockbuster/issues/47
donttest+=" or (test_cookie_jar and (heap or expire)) or test_treat_as_secure_origin_init"
# hardlimit for open files too low
donttest+=" or test_handler_cancellation or test_no_handler_cancellation "
# requires python-on-whales
rm -v tests/autobahn/test_autobahn.py

View File

@@ -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]: