Accepting request 1190529 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1190529 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ptyprocess?expand=0&rev=10
This commit is contained in:
commit
63f696e5fa
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 30 12:03:04 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Cherry-pick upstream patch to fix tests with Python 3.13.
|
||||||
|
* remove-old-unittest-functions.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Apr 21 12:30:03 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
Fri Apr 21 12:30:03 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-ptyprocess
|
# spec file for package python-ptyprocess
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -26,6 +26,8 @@ License: ISC
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/pexpect/ptyprocess
|
URL: https://github.com/pexpect/ptyprocess
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/ptyprocess/ptyprocess-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/ptyprocess/ptyprocess-%{version}.tar.gz
|
||||||
|
# PATCH-FIX-UPSTREAM - gh/pexpect/ptyprocess#75 - Remove unittest.makeSuite, gone from Python 3.13
|
||||||
|
Patch: https://github.com/pexpect/ptyprocess/pull/75.patch#/remove-old-unittest-functions.patch
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@ -44,6 +46,7 @@ If you need to automate these things, running the process in a pseudo terminal
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n ptyprocess-%{version}
|
%setup -q -n ptyprocess-%{version}
|
||||||
|
%patch -P0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
|
32
remove-old-unittest-functions.patch
Normal file
32
remove-old-unittest-functions.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')
|
||||||
|
-
|
Loading…
x
Reference in New Issue
Block a user