diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2023-01-16 19:47:46 -0500 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2023-01-16 19:47:46 -0500 |
commit | 764ffbfaf41077e6edc4bdecad7660b85567828f (patch) | |
tree | 6190bc2cd5a2d3892c4b37b039a9339ca236944b /tests | |
parent | e0c6a2c3cd84fd6b93fd4e28e3bc54dedb4b1dc3 (diff) |
blacken
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_client.py | 6 | ||||
-rw-r--r-- | tests/test_sftp_big.py | 12 | ||||
-rw-r--r-- | tests/test_ssh_gss.py | 2 |
3 files changed, 7 insertions, 13 deletions
diff --git a/tests/test_client.py b/tests/test_client.py index 3dffa08e..dae5b13a 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -593,7 +593,7 @@ class SSHClientTest(ClientTest): paramiko.SSHException, self.tc.connect, password="pygmalion", - **self.connect_kwargs + **self.connect_kwargs, ) @requires_gss_auth @@ -614,7 +614,7 @@ class SSHClientTest(ClientTest): self.tc.connect, password="pygmalion", gss_kex=True, - **self.connect_kwargs + **self.connect_kwargs, ) def _client_host_key_bad(self, host_key): @@ -630,7 +630,7 @@ class SSHClientTest(ClientTest): paramiko.BadHostKeyException, self.tc.connect, password="pygmalion", - **self.connect_kwargs + **self.connect_kwargs, ) def _client_host_key_good(self, ktype, kfile): diff --git a/tests/test_sftp_big.py b/tests/test_sftp_big.py index 5f55a6fc..5192f657 100644 --- a/tests/test_sftp_big.py +++ b/tests/test_sftp_big.py @@ -329,9 +329,7 @@ class TestBigSFTP: """ mblob = 1024 * 1024 * "x" try: - with sftp.open( - f"{sftp.FOLDER}/hongry.txt", "w", 128 * 1024 - ) as f: + with sftp.open(f"{sftp.FOLDER}/hongry.txt", "w", 128 * 1024) as f: f.write(mblob) assert ( @@ -348,9 +346,7 @@ class TestBigSFTP: t.packetizer.REKEY_BYTES = 512 * 1024 k32blob = 32 * 1024 * "x" try: - with sftp.open( - f"{sftp.FOLDER}/hongry.txt", "w", 128 * 1024 - ) as f: + with sftp.open(f"{sftp.FOLDER}/hongry.txt", "w", 128 * 1024) as f: for i in range(32): f.write(k32blob) @@ -360,9 +356,7 @@ class TestBigSFTP: assert t.H != t.session_id # try to read it too. - with sftp.open( - f"{sftp.FOLDER}/hongry.txt", "r", 128 * 1024 - ) as f: + with sftp.open(f"{sftp.FOLDER}/hongry.txt", "r", 128 * 1024) as f: file_size = f.stat().st_size f.prefetch(file_size) total = 0 diff --git a/tests/test_ssh_gss.py b/tests/test_ssh_gss.py index cff72f7a..a8175ccb 100644 --- a/tests/test_ssh_gss.py +++ b/tests/test_ssh_gss.py @@ -114,7 +114,7 @@ class GSSAuthTest(KerberosTestCase): username=self.username, gss_host=self.hostname, gss_auth=True, - **kwargs + **kwargs, ) self.event.wait(1.0) |