Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-aioresponses for 
openSUSE:Factory checked in at 2026-06-05 14:55:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-aioresponses (Old)
 and      /work/SRC/openSUSE:Factory/.python-aioresponses.new.2375 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-aioresponses"

Fri Jun  5 14:55:49 2026 rev:18 rq:1357146 version:0.7.8

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-aioresponses/python-aioresponses.changes  
2025-06-13 18:43:44.418665456 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-aioresponses.new.2375/python-aioresponses.changes
        2026-06-05 14:55:51.497284476 +0200
@@ -1,0 +2,6 @@
+Thu Jun  4 08:41:08 UTC 2026 - Daniel Garcia <[email protected]>
+
+- Add upstream patch support-aiohttp-3.14.patch to support latest
+  aiohttp gh#pnuckowski/aioresponses#288
+
+-------------------------------------------------------------------

New:
----
  support-aiohttp-3.14.patch

----------(New B)----------
  New:
- Add upstream patch support-aiohttp-3.14.patch to support latest
  aiohttp gh#pnuckowski/aioresponses#288
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-aioresponses.spec ++++++
--- /var/tmp/diff_new_pack.e5L68v/_old  2026-06-05 14:55:52.505326164 +0200
+++ /var/tmp/diff_new_pack.e5L68v/_new  2026-06-05 14:55:52.509326330 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-aioresponses
 #
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,6 +25,8 @@
 License:        MIT
 URL:            https://github.com/pnuckowski/aioresponses
 Source:         
https://files.pythonhosted.org/packages/source/a/aioresponses/aioresponses-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM support-aiohttp-3.14.patch gh#pnuckowski/aioresponses#288
+Patch0:         support-aiohttp-3.14.patch
 BuildRequires:  %{python_module aiohttp >= 2.0.0}
 BuildRequires:  %{python_module ddt >= 1.1.0}
 BuildRequires:  %{python_module pbr}
@@ -48,7 +50,7 @@
 from the aiohttp package.
 
 %prep
-%setup -q -n aioresponses-%{version}
+%autosetup -p1 -n aioresponses-%{version}
 
 %build
 export LC_ALL=en_US.UTF-8

++++++ support-aiohttp-3.14.patch ++++++
>From 8f40e0db2eed16621607ecfc857168240c795755 Mon Sep 17 00:00:00 2001
From: Stefan Agner <[email protected]>
Date: Mon, 1 Jun 2026 23:18:55 +0200
Subject: [PATCH] fix: support aiohttp 3.14 required stream_writer argument

aiohttp 3.14.0 added a required keyword-only ``stream_writer`` argument
to ``ClientResponse.__init__``. aioresponses constructs the response
class without it, so every mocked response raised:

    TypeError: ClientResponse.__init__() missing 1 required
    keyword-only argument: 'stream_writer'

aiohttp only reads ``stream_writer.output_size``, so a ``Mock(output_size=0)``
is sufficient. A signature check on the response class keeps this a no-op
on aiohttp < 3.14 and respects custom response classes.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
---
 aioresponses/core.py | 6 ++++++
 1 file changed, 6 insertions(+)

Index: aioresponses-0.7.8/aioresponses/core.py
===================================================================
--- aioresponses-0.7.8.orig/aioresponses/core.py
+++ aioresponses-0.7.8/aioresponses/core.py
@@ -158,6 +158,12 @@ class RequestMatch(object):
             real_url=url
         )
         kwargs['writer'] = None
+        # aiohttp 3.14 added a required keyword-only ``stream_writer`` argument
+        # to ``ClientResponse.__init__``. It is only consulted for its
+        # ``output_size`` attribute, so a lightweight mock is sufficient. The
+        # signature check keeps this a no-op on aiohttp < 3.14.
+        if 'stream_writer' in inspect.signature(response_class).parameters:
+            kwargs['stream_writer'] = Mock(output_size=0)
         kwargs['continue100'] = None
         kwargs['timer'] = TimerNoop()
         kwargs['traces'] = []

Reply via email to