summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-ptyprocess
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-ptyprocess')
-rw-r--r--meta-python/recipes-devtools/python/python3-ptyprocess/a44312974bd9084aa568d2e18ce5b2a7e0e45983.patch35
-rw-r--r--meta-python/recipes-devtools/python/python3-ptyprocess/run-ptest3
2 files changed, 35 insertions, 3 deletions
diff --git a/meta-python/recipes-devtools/python/python3-ptyprocess/a44312974bd9084aa568d2e18ce5b2a7e0e45983.patch b/meta-python/recipes-devtools/python/python3-ptyprocess/a44312974bd9084aa568d2e18ce5b2a7e0e45983.patch
new file mode 100644
index 0000000000..0f1542341d
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-ptyprocess/a44312974bd9084aa568d2e18ce5b2a7e0e45983.patch
@@ -0,0 +1,35 @@
1From a44312974bd9084aa568d2e18ce5b2a7e0e45983 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
3Date: Mon, 23 Oct 2023 15:18:02 +0200
4Subject: [PATCH] Remove unittest.makeSuite, gone from Python 3.13
5
6See https://docs.python.org/3.13/whatsnew/3.13.html
7
8"""
9Removed the following unittest functions, deprecated in Python 3.11:
10
11 unittest.findTestCases()
12 unittest.makeSuite()
13 unittest.getTestCaseNames()
14"""
15
16The removed call does not seem to have any effect when the file is executed
17directly, run trough unittest discover or pytest.
18
19Upstream-Status: Backport [https://github.com/pexpect/ptyprocess/pull/75]
20Signed-off-by: Khem Raj <raj.khem@gmail.com>
21---
22 tests/test_invalid_binary.py | 3 ---
23 1 file changed, 3 deletions(-)
24
25diff --git a/tests/test_invalid_binary.py b/tests/test_invalid_binary.py
26index cf28098..545f9f7 100755
27--- a/tests/test_invalid_binary.py
28+++ b/tests/test_invalid_binary.py
29@@ -69,6 +69,3 @@ def test_invalid_binary(self):
30
31 if __name__ == '__main__':
32 unittest.main()
33-
34-suite = unittest.makeSuite(InvalidBinaryChars,'test')
35-
diff --git a/meta-python/recipes-devtools/python/python3-ptyprocess/run-ptest b/meta-python/recipes-devtools/python/python3-ptyprocess/run-ptest
deleted file mode 100644
index 8d2017d39c..0000000000
--- a/meta-python/recipes-devtools/python/python3-ptyprocess/run-ptest
+++ /dev/null
@@ -1,3 +0,0 @@
1#!/bin/sh
2
3pytest --automake