From e0c6a2c3cd84fd6b93fd4e28e3bc54dedb4b1dc3 Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Mon, 16 Jan 2023 19:43:11 -0500 Subject: well that's just super()! --- tests/test_client.py | 2 +- tests/test_gssapi.py | 2 +- tests/test_transport.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/test_client.py b/tests/test_client.py index 3ff59b87..3dffa08e 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -62,7 +62,7 @@ class NullServer(paramiko.ServerInterface): self.__allowed_keys = kwargs.pop("allowed_keys", []) # And allow them to set a (single...meh) expected public blob (cert) self.__expected_public_blob = kwargs.pop("public_blob", None) - super(NullServer, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) def get_allowed_auths(self, username): if username == "slowdive": diff --git a/tests/test_gssapi.py b/tests/test_gssapi.py index 23c3ef42..671f1ba0 100644 --- a/tests/test_gssapi.py +++ b/tests/test_gssapi.py @@ -37,7 +37,7 @@ from .util import needs_gssapi, KerberosTestCase, update_env @needs_gssapi class GSSAPITest(KerberosTestCase): def setUp(self): - super(GSSAPITest, self).setUp() + super().setUp() # TODO: these vars should all come from os.environ or whatever the # approved pytest method is for runtime-configuring test data. self.krb5_mech = "1.2.840.113554.1.2.2" diff --git a/tests/test_transport.py b/tests/test_transport.py index 841c67f1..4d28199a 100644 --- a/tests/test_transport.py +++ b/tests/test_transport.py @@ -903,7 +903,7 @@ class TransportTest(unittest.TestCase): class SlowPacketizer(Packetizer): def read_message(self): time.sleep(1) - return super(SlowPacketizer, self).read_message() + return super().read_message() # NOTE: prettttty sure since the replaced .packetizer Packetizer is now # no longer doing anything with its copy of the socket...everything'll -- cgit v1.2.1