forked from pool/python-slimit
Accepting request 1225051 from devel:languages:python
- add py313-makesuite.patch to fix unittest.makeSuite removal OBS-URL: https://build.opensuse.org/request/show/1225051 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-slimit?expand=0&rev=16
This commit is contained in:
13
py313-makesuite.patch
Normal file
13
py313-makesuite.patch
Normal file
@@ -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
|
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 19 10:30:28 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- add py313-makesuite.patch to fix unittest.makeSuite removal
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Mar 4 04:53:47 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
Mon Mar 4 04:53:47 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
@@ -29,6 +29,7 @@ Source: https://files.pythonhosted.org/packages/source/s/slimit/slimit-%
|
|||||||
Patch0: python-slimit-add-licence.patch
|
Patch0: python-slimit-add-licence.patch
|
||||||
# https://github.com/rspivak/slimit/commit/40956e7fc6e954b3e6d7b629faeb3303f5efb7ea
|
# https://github.com/rspivak/slimit/commit/40956e7fc6e954b3e6d7b629faeb3303f5efb7ea
|
||||||
Patch1: python-slimit-fix-python3.patch
|
Patch1: python-slimit-fix-python3.patch
|
||||||
|
Patch2: py313-makesuite.patch
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module ply >= 3.4}
|
BuildRequires: %{python_module ply >= 3.4}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
Reference in New Issue
Block a user