Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pook for openSUSE:Factory 
checked in at 2026-11-16 15:14:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pook (Old)
 and      /work/SRC/openSUSE:Factory/.python-pook.new.1251 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pook"

Mon Nov 16 15:14:50 2026 rev:13 rq:1397882 version:2.1.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pook/python-pook.changes  2026-09-23 
18:18:06.471922901 +0200
+++ /work/SRC/openSUSE:Factory/.python-pook.new.1251/python-pook.changes        
2026-11-16 15:15:00.302708547 +0100
@@ -1,0 +2,9 @@
+Mon Nov 16 10:55:20 UTC 2026 - Daniel Garcia <[email protected]>
+
+- Update fix_tests.patch to support latest urllib3, this fixes the
+  exception in FakeChunkedResponseBody:
+
+  TypeError: FakeChunkedResponseBody.readline() takes 1
+  positional argument but 2 were given
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ fix_tests.patch ++++++
--- /var/tmp/diff_new_pack.dZ66Tt/_old  2026-11-16 15:15:01.727769840 +0100
+++ /var/tmp/diff_new_pack.dZ66Tt/_new  2026-11-16 15:15:01.730769969 +0100
@@ -8,9 +8,9 @@
 
 Index: pook-2.1.6/src/pook/interceptors/_httpx.py
 ===================================================================
---- pook-2.1.6.orig/src/pook/interceptors/_httpx.py    2026-07-08 
15:54:29.078008908 +0200
-+++ pook-2.1.6/src/pook/interceptors/_httpx.py 2026-07-08 16:02:54.165220333 
+0200
-@@ -35,12 +35,14 @@
+--- pook-2.1.6.orig/src/pook/interceptors/_httpx.py
++++ pook-2.1.6/src/pook/interceptors/_httpx.py
+@@ -35,12 +35,14 @@ class HttpxInterceptor(BaseInterceptor):
          else:
              transport_cls = SyncTransport
  
@@ -31,9 +31,9 @@
              pass
 Index: pook-2.1.6/src/pook/interceptors/aiohttp.py
 ===================================================================
---- pook-2.1.6.orig/src/pook/interceptors/aiohttp.py   2026-07-08 
15:54:29.078008908 +0200
-+++ pook-2.1.6/src/pook/interceptors/aiohttp.py        2026-07-08 
16:02:20.178247069 +0200
-@@ -84,10 +84,14 @@
+--- pook-2.1.6.orig/src/pook/interceptors/aiohttp.py
++++ pook-2.1.6/src/pook/interceptors/aiohttp.py
+@@ -84,10 +84,14 @@ class AIOHTTPInterceptor(BaseInterceptor
              return super_request(session, *args, **kwargs)
  
          try:
@@ -50,7 +50,7 @@
              # Start patching function calls
              patcher.start()
          except Exception:
-@@ -116,6 +120,11 @@
+@@ -116,6 +120,11 @@ class SimpleContent(EmptyStreamReader):
  
  
  def HTTPResponse(session: aiohttp.ClientSession, *args, **kw):
@@ -64,15 +64,15 @@
          request_info=mock.Mock(),
 Index: pook-2.1.6/src/pook/interceptors/base.py
 ===================================================================
---- pook-2.1.6.orig/src/pook/interceptors/base.py      2026-07-08 
15:54:29.078008908 +0200
-+++ pook-2.1.6/src/pook/interceptors/base.py   2026-07-08 16:02:20.178435804 
+0200
+--- pook-2.1.6.orig/src/pook/interceptors/base.py
++++ pook-2.1.6/src/pook/interceptors/base.py
 @@ -1,4 +1,5 @@
  from abc import ABCMeta, abstractmethod
 +import importlib
  
  
  class BaseInterceptor:
-@@ -9,6 +10,29 @@
+@@ -9,6 +10,29 @@ class BaseInterceptor:
  
      __metaclass__ = ABCMeta
  
@@ -104,9 +104,9 @@
          self.engine = engine
 Index: pook-2.1.6/src/pook/interceptors/http.py
 ===================================================================
---- pook-2.1.6.orig/src/pook/interceptors/http.py      2026-07-08 
15:54:29.078008908 +0200
-+++ pook-2.1.6/src/pook/interceptors/http.py   2026-07-08 16:03:04.000399310 
+0200
-@@ -98,28 +98,27 @@
+--- pook-2.1.6.orig/src/pook/interceptors/http.py
++++ pook-2.1.6/src/pook/interceptors/http.py
+@@ -98,28 +98,27 @@ class HTTPClientInterceptor(BaseIntercep
          return mockres
  
      def _patch(self, path):
@@ -153,9 +153,18 @@
              # Exceptions may accur due to missing package
 Index: pook-2.1.6/src/pook/interceptors/urllib3.py
 ===================================================================
---- pook-2.1.6.orig/src/pook/interceptors/urllib3.py   2026-07-08 
15:54:29.078008908 +0200
-+++ pook-2.1.6/src/pook/interceptors/urllib3.py        2026-07-08 
16:03:21.321714517 +0200
-@@ -166,24 +166,23 @@
+--- pook-2.1.6.orig/src/pook/interceptors/urllib3.py
++++ pook-2.1.6/src/pook/interceptors/urllib3.py
+@@ -94,7 +94,7 @@ class FakeChunkedResponseBody:
+ 
+         return chunk
+ 
+-    def readline(self):
++    def readline(self, *args, **kwargs):
+         return self.read_chunk(whole=True)
+ 
+     def read(self, amt=-1):
+@@ -166,24 +166,23 @@ class Urllib3Interceptor(BaseInterceptor
          )
  
      def _patch(self, path):
@@ -163,14 +172,16 @@
 -            # Flag that the current request as urllib3 intercepted
 -            headers = headers or {}
 -            headers[URLLIB3_BYPASS] = "1"
-+        try:
-+            # Resolve the original function before patching
-+            original_func = self.resolve_path(path)
- 
+-
 -            # Call request interceptor
 -            return self._on_request(
 -                urlopen, path, conn, method, url, body=body, headers=headers, 
**kw
 -            )
+-
+         try:
++            # Resolve the original function before patching
++            original_func = self.resolve_path(path)
++
 +            def handler(conn, method, url, body=None, headers=None, **kw):
 +                # Flag that the current request as urllib3 intercepted
 +                headers = headers or {}
@@ -180,8 +191,7 @@
 +                return self._on_request(
 +                    original_func, path, conn, method, url, body=body, 
headers=headers, **kw
 +                )
- 
--        try:
++
              # Create a new patcher for Urllib3 urlopen function
              # used as entry point for all the HTTP communications
              patcher = mock.patch(path, handler)
@@ -194,9 +204,9 @@
              # Exceptions may accur due to missing package
 Index: pook-2.1.6/src/pook/matchers/headers.py
 ===================================================================
---- pook-2.1.6.orig/src/pook/matchers/headers.py       2026-07-08 
15:54:29.078008908 +0200
-+++ pook-2.1.6/src/pook/matchers/headers.py    2026-07-08 16:02:20.179042938 
+0200
-@@ -16,19 +16,16 @@
+--- pook-2.1.6.orig/src/pook/matchers/headers.py
++++ pook-2.1.6/src/pook/matchers/headers.py
+@@ -16,19 +16,16 @@ class HeadersMatcher(BaseMatcher):
      @BaseMatcher.matcher
      def match(self, req):
          for key in self.expectation:

Reply via email to