Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-mypy for openSUSE:Factory checked in at 2024-10-06 17:51:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-mypy (Old) and /work/SRC/openSUSE:Factory/.python-mypy.new.19354 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-mypy" Sun Oct 6 17:51:45 2024 rev:8 rq:1205767 version:1.11.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-mypy/python-mypy.changes 2024-09-12 16:54:01.115015343 +0200 +++ /work/SRC/openSUSE:Factory/.python-mypy.new.19354/python-mypy.changes 2024-10-06 17:51:59.629159365 +0200 @@ -1,0 +2,5 @@ +Fri Oct 4 14:11:11 UTC 2024 - Markéta Machová <mmach...@suse.com> + +- Add upstream latest-pythons.patch to fix tests on latest Python releases + +------------------------------------------------------------------- New: ---- latest-pythons.patch BETA DEBUG BEGIN: New: - Add upstream latest-pythons.patch to fix tests on latest Python releases BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-mypy.spec ++++++ --- /var/tmp/diff_new_pack.WZbSwq/_old 2024-10-06 17:52:00.165181640 +0200 +++ /var/tmp/diff_new_pack.WZbSwq/_new 2024-10-06 17:52:00.169181807 +0200 @@ -32,6 +32,8 @@ # License Source2: Apache-2.0. Only for the test suite, not packaged here. Source2: https://files.pythonhosted.org/packages/source/t/types-setuptools/types-setuptools-%{types_setuptools_version}.tar.gz Source99: python-mypy-rpmlintrc +# PATCH-FIX-UPSTREAM https://github.com/python/mypy/pull/17849 Fix tests on latest Python 3.13 (and 3.12) +Patch0: latest-pythons.patch BuildRequires: %{python_module exceptiongroup} BuildRequires: %{python_module mypy_extensions >= 1.0.0} BuildRequires: %{python_module pip} ++++++ latest-pythons.patch ++++++ >From 1a2c8e2a4df21532e4952191cad74ae50083f4ad Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsani...@users.noreply.github.com> Date: Sat, 28 Sep 2024 14:20:45 -0700 Subject: [PATCH] Fix tests on latest Python 3.13 (and 3.12) (#17849) Related to python/cpython@c6c3d970ba54f4ad4c4151bb262cef96d3299480 (python/cpython#121329), thanks to brianschubert for noticing --- mypyc/test-data/run-dicts.test | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mypyc/test-data/run-dicts.test b/mypyc/test-data/run-dicts.test index 58b862e3f303..d4f5b945309e 100644 --- a/mypyc/test-data/run-dicts.test +++ b/mypyc/test-data/run-dicts.test @@ -157,7 +157,11 @@ else: try: clear_during_iter(d) except RuntimeError as e: - assert str(e) == "OrderedDict changed size during iteration" + assert str(e) in ( + "OrderedDict changed size during iteration", + # Error message changed in Python 3.13 and some 3.12 patch version + "OrderedDict mutated during iteration", + ) else: assert False