Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-urwid for openSUSE:Factory checked in at 2023-02-20 17:46:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-urwid (Old) and /work/SRC/openSUSE:Factory/.python-urwid.new.22824 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-urwid" Mon Feb 20 17:46:16 2023 rev:20 rq:1066735 version:2.1.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-urwid/python-urwid.changes 2021-11-20 02:38:18.408945151 +0100 +++ /work/SRC/openSUSE:Factory/.python-urwid.new.22824/python-urwid.changes 2023-02-20 17:47:00.195821246 +0100 @@ -1,0 +2,6 @@ +Mon Feb 20 08:41:44 UTC 2023 - Daniel Garcia <daniel.gar...@suse.com> + +- Add python-311.patch to fix tests for python 3.11 + gh#urwid/urwid#517 + +------------------------------------------------------------------- New: ---- python-311.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-urwid.spec ++++++ --- /var/tmp/diff_new_pack.isDqpa/_old 2023-02-20 17:47:01.571829019 +0100 +++ /var/tmp/diff_new_pack.isDqpa/_new 2023-02-20 17:47:01.575829042 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-urwid # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without python2 Name: python-urwid Version: 2.1.2 @@ -25,6 +24,8 @@ License: LGPL-2.1-or-later URL: http://urwid.org Source: https://files.pythonhosted.org/packages/source/u/urwid/urwid-%{version}.tar.gz +# PATCH-FIX-UPSTREAM python-311.patch gh#urwid/urwid#517 +Patch0: python-311.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -50,7 +51,7 @@ - Python 3.2 support %prep -%setup -q -n "urwid-%{version}" +%autosetup -p1 -n "urwid-%{version}" # remove unwanted shebang find urwid -name "*.py" | xargs sed -i '1 { /^#!/ d }' ++++++ python-311.patch ++++++ Index: urwid-2.1.2/urwid/tests/test_event_loops.py =================================================================== --- urwid-2.1.2.orig/urwid/tests/test_event_loops.py +++ urwid-2.1.2/urwid/tests/test_event_loops.py @@ -201,15 +201,14 @@ else: evl.alarm(0.5, lambda: 1 / 0) # Simulate error in event loop self.assertRaises(ZeroDivisionError, evl.run) - def test_coroutine_error(self): + async def test_coroutine_error(self): evl = self.evl - @asyncio.coroutine - def error_coro(): + async def error_coro(): result = 1 / 0 # Simulate error in coroutine yield result - asyncio.ensure_future(error_coro()) + asyncio.ensure_future(await error_coro()) self.assertRaises(ZeroDivisionError, evl.run)