Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-lazy-object-proxy for 
openSUSE:Factory checked in at 2026-09-11 18:03:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-lazy-object-proxy (Old)
 and      /work/SRC/openSUSE:Factory/.python-lazy-object-proxy.new.1265 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-lazy-object-proxy"

Fri Sep 11 18:03:12 2026 rev:20 rq:1377058 version:1.12.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-lazy-object-proxy/python-lazy-object-proxy.changes
        2025-11-24 14:16:28.951732555 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-lazy-object-proxy.new.1265/python-lazy-object-proxy.changes
      2026-09-11 18:06:52.829762983 +0200
@@ -1,0 +2,6 @@
+Fri Sep 11 06:18:45 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch support-python-315.patch:
+  * Support different await TypeError exception messages.
+
+-------------------------------------------------------------------

New:
----
  support-python-315.patch

----------(New B)----------
  New:
- Add patch support-python-315.patch:
  * Support different await TypeError exception messages.
----------(New E)----------

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

Other differences:
------------------
++++++ python-lazy-object-proxy.spec ++++++
--- /var/tmp/diff_new_pack.arXeC7/_old  2026-09-11 18:06:54.855848077 +0200
+++ /var/tmp/diff_new_pack.arXeC7/_new  2026-09-11 18:06:54.862848371 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-lazy-object-proxy
 #
-# Copyright (c) 2025 SUSE LLC and contributors
+# 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
@@ -32,6 +32,8 @@
 License:        BSD-2-Clause
 URL:            https://github.com/ionelmc/python-lazy-object-proxy
 Source:         
https://files.pythonhosted.org/packages/source/l/lazy-object-proxy/lazy_object_proxy-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM gh#ionelmc/python-lazy-object-proxy#97
+Patch0:         support-python-315.patch
 BuildRequires:  %{python_module devel >= 3.9}
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools >= 75}
@@ -53,7 +55,7 @@
 from Python's ast
 
 %prep
-%setup -q -n lazy_object_proxy-%{version}
+%autosetup -p1 -n lazy_object_proxy-%{version}
 
 %build
 %if !%{with test}

++++++ support-python-315.patch ++++++
>From 153d13206f7595606e8717fe8f0992bd34b8bd8b Mon Sep 17 00:00:00 2001
From: Steve Kowalik <[email protected]>
Date: Fri, 11 Sep 2026 16:13:03 +1000
Subject: [PATCH] Support new await TypeError messages

Python 3.15 changed the TypeError exception messages that are raised if
you pass in the wrong object. Handle both pre-3.15 and 3.15 and on.
---
 tests/test_async_py3.py | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/tests/test_async_py3.py b/tests/test_async_py3.py
index 8e7b108..5958f05 100644
--- a/tests/test_async_py3.py
+++ b/tests/test_async_py3.py
@@ -542,7 +542,11 @@ def __await__(self):
     async def foo():
         return await lop.Proxy(Awaitable)
 
-    with pytest.raises(TypeError, match='__await__.*returned non-iterator of 
type'):
+    msg = '__await__.*returned non-iterator of type'
+    if sys.version_info[:2] >= (3, 15):
+        msg = r'__await__\(\) must return an iterator, not NoneType'
+
+    with pytest.raises(TypeError, match=msg):
         run_async(lop.Proxy(foo))
 
 
@@ -650,7 +654,11 @@ def __await__(self):
     async def foo():
         return await lop.Proxy(Awaitable)
 
-    with pytest.raises(TypeError, match=r'__await__\(\) returned a coroutine'):
+    msg = r'__await__\(\) returned a coroutine'
+    if sys.version_info[:2] >= (3, 15):
+        msg = r'__await__\(\) must return an iterator, not coroutine'
+
+    with pytest.raises(TypeError, match=msg):
         run_async(lop.Proxy(foo))
 
     c.close()
@@ -664,7 +672,11 @@ def __await__(self):
     async def foo():
         return await lop.Proxy(Awaitable)
 
-    with pytest.raises(TypeError, match='__await__.*returned non-iterator of 
type'):
+    msg = '__await__.*returned non-iterator of type'
+    if sys.version_info[:2] >= (3, 15):
+        msg = r'__await__\(\) must return an iterator, not.*Awaitable'
+
+    with pytest.raises(TypeError, match=msg):
         run_async(lop.Proxy(foo))
 
 

Reply via email to