Debian Codegraph @

debian/patches/remove-unittest-makeSuite.patch

raw
1 From: =?utf-8?q?Miro_Hron=C4=8Dok?= <[email protected]>
2 Date: Mon, 23 Oct 2023 15:18:02 +0200
3 Subject: Remove unittest.makeSuite, gone from Python 3.13
4
5 See https://docs.python.org/3.13/whatsnew/3.13.html
6
7 """
8 Removed the following unittest functions, deprecated in Python 3.11:
9
10 unittest.findTestCases()
11 unittest.makeSuite()
12 unittest.getTestCaseNames()
13 """
14
15 The removed call does not seem to have any effect when the file is executed
16 directly, run through unittest discover or pytest.
17
18 Origin: upstream, https://github.com/pexpect/ptyprocess/pull/75
19 Bug-Debian: https://bugs.debian.org/1082145
20 Last-Update: 2024-11-03
21 ---
22 tests/test_invalid_binary.py | 3 ---
23 1 file changed, 3 deletions(-)
24
25 diff --git a/tests/test_invalid_binary.py b/tests/test_invalid_binary.py
26 index cf28098..545f9f7 100755
27 --- a/tests/test_invalid_binary.py
28 +++ b/tests/test_invalid_binary.py
29 @@ -69,6 +69,3 @@ class InvalidBinaryChars(unittest.TestCase):
30
31 if __name__ == '__main__':
32 unittest.main()
33 -
34 -suite = unittest.makeSuite(InvalidBinaryChars,'test')
35 -