From 71dd9c098b800a358065070a44d2803b759f222a Mon Sep 17 00:00:00 2001
From: marston <manuelfern1997@gmail.com>
Date: Wed, 27 Sep 2023 21:04:25 -0400
Subject: [PATCH] Fix deprecated nose tests and 'isSet()'

Upstream-PR: https://github.com/paramiko/paramiko/pull/2306
Upstream-Issue: https://github.com/paramiko/paramiko/issues/2290

diff --git a/tests/test_client.py b/tests/test_client.py
index 1c0c6c84b..feb27bbec 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -689,7 +689,7 @@ def _setup_for_env(self):
         )
 
         self.event.wait(1.0)
-        self.assertTrue(self.event.isSet())
+        self.assertTrue(self.event.is_set())
         self.assertTrue(self.ts.is_active())
 
     def test_update_environment(self):
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):
