summaryrefslogtreecommitdiffstats
path: root/debian/patches/0001-Use-pytest-s-setup_method-in-pytest-8-the-nose-metho.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0001-Use-pytest-s-setup_method-in-pytest-8-the-nose-metho.patch')
-rw-r--r--debian/patches/0001-Use-pytest-s-setup_method-in-pytest-8-the-nose-metho.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/patches/0001-Use-pytest-s-setup_method-in-pytest-8-the-nose-metho.patch b/debian/patches/0001-Use-pytest-s-setup_method-in-pytest-8-the-nose-metho.patch
new file mode 100644
index 0000000..a0de1f7
--- /dev/null
+++ b/debian/patches/0001-Use-pytest-s-setup_method-in-pytest-8-the-nose-metho.patch
@@ -0,0 +1,26 @@
+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 2e49aa3d..1e623e0a 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):
+--
+2.43.0
+