From 1dc172d00320d6ca77f65c355b1ee910b71e6a65 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sat, 27 Jan 2024 17:04:18 -0500 Subject: 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(-) (limited to 'tests') diff --git a/tests/test_config.py b/tests/test_config.py index a2c60a32..6e96e9a6 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): -- cgit v1.2.3