Accepting request 1173814 from devel:languages:python
- Add patch support-pytest-8.patch: * Use non-deprecated setup method to support pytest >= 8. OBS-URL: https://build.opensuse.org/request/show/1173814 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-paramiko?expand=0&rev=62
This commit is contained in:
commit
f099bdfd92
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 14 03:27:34 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Add patch support-pytest-8.patch:
|
||||||
|
* Use non-deprecated setup method to support pytest >= 8.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Dec 20 06:57:15 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
Wed Dec 20 06:57:15 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-paramiko
|
# spec file for package python-paramiko
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@ -29,6 +29,8 @@ Patch0: paramiko-test_extend_timeout.patch
|
|||||||
Patch1: remove-icecream-dep.patch
|
Patch1: remove-icecream-dep.patch
|
||||||
# PATCH-FIX-OPENSUSE use 64-bit value of sys.maxsize to prevent test failure on 32-bit
|
# PATCH-FIX-OPENSUSE use 64-bit value of sys.maxsize to prevent test failure on 32-bit
|
||||||
Patch2: use-64-bit-maxsize-everywhere.patch
|
Patch2: use-64-bit-maxsize-everywhere.patch
|
||||||
|
# PATCH-FIX-UPSTREAM gh#paramiko/paramiko#2349 Use non-deprecated setup method name to support pytest >= 8
|
||||||
|
Patch3: support-pytest-8.patch
|
||||||
BuildRequires: %{python_module PyNaCl >= 1.0.1}
|
BuildRequires: %{python_module PyNaCl >= 1.0.1}
|
||||||
BuildRequires: %{python_module Sphinx}
|
BuildRequires: %{python_module Sphinx}
|
||||||
BuildRequires: %{python_module bcrypt >= 3.2}
|
BuildRequires: %{python_module bcrypt >= 3.2}
|
||||||
|
23
support-pytest-8.patch
Normal file
23
support-pytest-8.patch
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
From d71046151d9904df467ff72709585cde39cdd4ca Mon Sep 17 00:00:00 2001
|
||||||
|
From: Alex Gaynor <alex.gaynor@gmail.com>
|
||||||
|
Date: Sat, 27 Jan 2024 17:04:18 -0500
|
||||||
|
Subject: [PATCH] Use pytest's setup_method -- in pytest 8 the nose method
|
||||||
|
setup is deprecated
|
||||||
|
|
||||||
|
---
|
||||||
|
tests/test_config.py | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/tests/test_config.py b/tests/test_config.py
|
||||||
|
index 2e49aa3de..1e623e0ad 100644
|
||||||
|
--- a/tests/test_config.py
|
||||||
|
+++ b/tests/test_config.py
|
||||||
|
@@ -53,7 +53,7 @@ def load_config(name):
|
||||||
|
|
||||||
|
|
||||||
|
class TestSSHConfig:
|
||||||
|
- def setup(self):
|
||||||
|
+ def setup_method(self):
|
||||||
|
self.config = load_config("robey")
|
||||||
|
|
||||||
|
def test_init(self):
|
Loading…
x
Reference in New Issue
Block a user