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}