From d59595fec7b837fe44660411150ad0a1d1744e97b6827fb592c336c556ff4b4e Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 19 Nov 2024 10:30:41 +0000 Subject: [PATCH] - add py313-makesuite.patch to fix unittest.makeSuite removal OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-slimit?expand=0&rev=24 --- py313-makesuite.patch | 13 +++++++++++++ python-slimit.changes | 5 +++++ python-slimit.spec | 1 + 3 files changed, 19 insertions(+) create mode 100644 py313-makesuite.patch diff --git a/py313-makesuite.patch b/py313-makesuite.patch new file mode 100644 index 0000000..0f39d25 --- /dev/null +++ b/py313-makesuite.patch @@ -0,0 +1,13 @@ +Index: slimit-0.8.1/src/slimit/tests/test_lexer.py +=================================================================== +--- slimit-0.8.1.orig/src/slimit/tests/test_lexer.py ++++ slimit-0.8.1/src/slimit/tests/test_lexer.py +@@ -286,7 +286,7 @@ for index, (input, expected) in enumerat + + def test_suite(): + return unittest.TestSuite(( +- unittest.makeSuite(LexerTestCase), ++ unittest.defaultTestLoader.loadTestsFromTestCase(LexerTestCase), + doctest.DocFileSuite( + '../lexer.py', + optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS diff --git a/python-slimit.changes b/python-slimit.changes index a27da2b..bf43ec6 100644 --- a/python-slimit.changes +++ b/python-slimit.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Nov 19 10:30:28 UTC 2024 - Dirk Müller + +- add py313-makesuite.patch to fix unittest.makeSuite removal + ------------------------------------------------------------------- Mon Mar 4 04:53:47 UTC 2024 - Steve Kowalik diff --git a/python-slimit.spec b/python-slimit.spec index 500c7e0..3c15ccc 100644 --- a/python-slimit.spec +++ b/python-slimit.spec @@ -29,6 +29,7 @@ Source: https://files.pythonhosted.org/packages/source/s/slimit/slimit-% Patch0: python-slimit-add-licence.patch # https://github.com/rspivak/slimit/commit/40956e7fc6e954b3e6d7b629faeb3303f5efb7ea Patch1: python-slimit-fix-python3.patch +Patch2: py313-makesuite.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module ply >= 3.4} BuildRequires: %{python_module setuptools}