| 1 | From a44312974bd9084aa568d2e18ce5b2a7e0e45983 Mon Sep 17 00:00:00 2001
|
| 2 | From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <[email protected]>
|
| 3 | Date: Mon, 23 Oct 2023 15:18:02 +0200
|
| 4 | Subject: [PATCH] Remove unittest.makeSuite, gone from Python 3.13
|
| 5 |
|
| 6 | See https://docs.python.org/3.13/whatsnew/3.13.html
|
| 7 |
|
| 8 | """
|
| 9 | Removed the following unittest functions, deprecated in Python 3.11:
|
| 10 |
|
| 11 | unittest.findTestCases()
|
| 12 | unittest.makeSuite()
|
| 13 | unittest.getTestCaseNames()
|
| 14 | """
|
| 15 |
|
| 16 | The removed call does not seem to have any effect when the file is executed
|
| 17 | directly, run trough unittest discover or pytest.
|
| 18 | ---
|
| 19 | tests/test_invalid_binary.py | 3 ---
|
| 20 | 1 file changed, 3 deletions(-)
|
| 21 |
|
| 22 | diff --git a/tests/test_invalid_binary.py b/tests/test_invalid_binary.py
|
| 23 | index cf28098..545f9f7 100755
|
| 24 | |
| 25 | |
| 26 | @@ -69,6 +69,3 @@ def test_invalid_binary(self):
|
| 27 |
|
| 28 | if __name__ == '__main__':
|
| 29 | unittest.main()
|
| 30 | -
|
| 31 | -suite = unittest.makeSuite(InvalidBinaryChars,'test')
|
| 32 | -
|