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/test_sftp_big.py | |
parent | e0c6a2c3cd84fd6b93fd4e28e3bc54dedb4b1dc3 (diff) |
blacken
Diffstat (limited to 'tests/test_sftp_big.py')
-rw-r--r-- | tests/test_sftp_big.py | 12 |
1 files changed, 3 insertions, 9 deletions
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 |