Skip to contentSkip to conversation

python3-pyroute2: Add missing rdeps for ptests

PATCH New Khem Raj 1 participant 2 messages Oct 26, 2024

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 python3-pyroute2: Add missing rdeps for ptests

These are needed with python 3.13

---
 meta-python/recipes-devtools/python/python3-pyroute2_0.7.12.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-pyroute2_0.7.12.bb +2 -0
index cf9885df71..a12fa0ac4c 100644
@@ -28,6 +28,8 @@ SRC_URI += " \
 
 RDEPENDS:${PN}-ptest += " \
     python3-fcntl \
+    python3-html \
+    python3-netclient \
     python3-pytest \
     python3-sqlite3 \
     python3-unittest-automake-output \
author
#1 lore raw

PATCH 2/2 python3-ptyprocess: Fix ptests with python 3.13

---
 ...12974bd9084aa568d2e18ce5b2a7e0e45983.patch | 35 +++++++++++++++++++
 .../python/python3-ptyprocess_0.7.0.bb        |  1 +
 2 files changed, 36 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-ptyprocess/a44312974bd9084aa568d2e18ce5b2a7e0e45983.patch
meta-python/recipes-devtools/python/python3-ptyprocess/a44312974bd9084aa568d2e18ce5b2a7e0e45983.patch new file +35 -0
new file mode 100644
index 0000000000..0f1542341d
@@ -0,0 +1,35 @@
+From a44312974bd9084aa568d2e18ce5b2a7e0e45983 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <[email protected]>
+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.
+
+Upstream-Status: Backport [https://github.com/pexpect/ptyprocess/pull/75]
+Signed-off-by: Khem Raj <[email protected]>
+---
+ 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')
+-
meta-python/recipes-devtools/python/python3-ptyprocess_0.7.0.bb +1 -0
index 4abec0a01c..e0c5e47199 100644
@@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=cfdcd51fa7d5808da4e74346ee394490"
 
 SRCNAME = "ptyprocess"
 
+SRC_URI += "file://a44312974bd9084aa568d2e18ce5b2a7e0e45983.patch"
 SRC_URI[sha256sum] = "5c5d0a3b48ceee0b48485e0c26037c0acd7d29765ca3fbb5cb3831d347423220"
 
 inherit pypi python_flit_core