Remove unittest.makeSuite, gone from Python 3.13
This commit is contained in:
parent
631f3b6fc3
commit
2ddb514781
32
75.patch
Normal file
32
75.patch
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
From a44312974bd9084aa568d2e18ce5b2a7e0e45983 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
|
||||||
|
Date: Mon, 23 Oct 2023 15:18:02 +0200
|
||||||
|
Subject: [PATCH] Remove unittest.makeSuite, gone from Python 3.13
|
||||||
|
|
||||||
|
See https://docs.python.org/3.13/whatsnew/3.13.html
|
||||||
|
|
||||||
|
"""
|
||||||
|
Removed the following unittest functions, deprecated in Python 3.11:
|
||||||
|
|
||||||
|
unittest.findTestCases()
|
||||||
|
unittest.makeSuite()
|
||||||
|
unittest.getTestCaseNames()
|
||||||
|
"""
|
||||||
|
|
||||||
|
The removed call does not seem to have any effect when the file is executed
|
||||||
|
directly, run trough unittest discover or pytest.
|
||||||
|
---
|
||||||
|
tests/test_invalid_binary.py | 3 ---
|
||||||
|
1 file changed, 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/tests/test_invalid_binary.py b/tests/test_invalid_binary.py
|
||||||
|
index cf28098..545f9f7 100755
|
||||||
|
--- a/tests/test_invalid_binary.py
|
||||||
|
+++ b/tests/test_invalid_binary.py
|
||||||
|
@@ -69,6 +69,3 @@ def test_invalid_binary(self):
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
||||||
|
-
|
||||||
|
-suite = unittest.makeSuite(InvalidBinaryChars,'test')
|
||||||
|
-
|
@ -11,6 +11,9 @@ License: ISC
|
|||||||
URL: https://github.com/pexpect/ptyprocess
|
URL: https://github.com/pexpect/ptyprocess
|
||||||
Source: %{pypi_source}
|
Source: %{pypi_source}
|
||||||
|
|
||||||
|
# Remove unittest.makeSuite, gone from Python 3.13
|
||||||
|
Patch: https://github.com/pexpect/ptyprocess/pull/75.patch
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -30,7 +33,7 @@ Launch a subprocess in a pseudo terminal (pty), and interact with both the
|
|||||||
process and its pty.
|
process and its pty.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n ptyprocess-%{version}
|
%autosetup -p1 -n ptyprocess-%{version}
|
||||||
|
|
||||||
%generate_buildrequires
|
%generate_buildrequires
|
||||||
%pyproject_buildrequires
|
%pyproject_buildrequires
|
||||||
|
Loading…
Reference in New Issue
Block a user