Sync from SUSE:SLFO:Main python-wxPython revision 020a1a01540585fa75fe84ef27f9d116

This commit is contained in:
Adrian Schröter 2025-03-28 16:46:32 +01:00
parent bbd67cfe55
commit a28544cf7a
4 changed files with 36 additions and 2 deletions

View File

@ -1,5 +1,4 @@
<multibuild>
<package>python310</package>
<package>python311</package>
<package>python312</package>
<package>python313</package>

27
python-3.13.1.patch Normal file
View File

@ -0,0 +1,27 @@
Index: wxPython-4.2.2/unittests/test_cmdproc.py
===================================================================
--- wxPython-4.2.2.orig/unittests/test_cmdproc.py
+++ wxPython-4.2.2/unittests/test_cmdproc.py
@@ -41,19 +41,19 @@ class cmdproc_Tests(wtc.WidgetTestCase):
cmds = cmdproc.GetCommands()
self.assertEqual(len(cmds), 5)
- self.assertEqual([x.value for x in cmds], [True]*5)
+ self.assertEqual([x.value for x in list(cmds)], [True]*5)
self.assertTrue(cmdproc.CanUndo())
self.assertFalse(cmdproc.CanRedo())
cmdproc.Undo()
cmdproc.Undo()
- self.assertEqual([x.value for x in cmds], [True]*3 + [False]*2)
+ self.assertEqual([x.value for x in list(cmds)], [True]*3 + [False]*2)
self.assertTrue(cmdproc.CanRedo())
cmdproc.Redo()
cmdproc.Redo()
- self.assertEqual([x.value for x in cmds], [True]*5)
+ self.assertEqual([x.value for x in list(cmds)], [True]*5)
cmdproc.Undo()
cmdproc.Undo()

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 20 17:58:04 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Add patch python-3.13.1.patch to fix tests with Python 3.13.1
- Factory is not built on Python 3.10 anymore
-------------------------------------------------------------------
Sun Nov 17 13:31:39 UTC 2024 - Ben Greiner <code@bnavigator.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-wxPython
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -98,6 +98,8 @@ Patch15: CVE-2024-50602-no-crash-XML_ResumeParser.patch
# PATCH-FIX-OPENSUSE - Test fixes/additions:
Patch112: 0001-Check-HSV-values-in-image-test.patch
Patch114: wxwidgets-3.2.5.patch
# PATCH-FIX-UPSTREAM https://github.com/wxWidgets/Phoenix/pull/2678 Fix test with Python 3.13.1
Patch115: python-3.13.1.patch
# TODO: Replace deprecated setup.py calls in build.py with PEP517 without building wxWidgets into the wheel
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module devel}