summaryrefslogtreecommitdiff
path: root/tests/test_transport.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2023-01-11 20:24:13 -0500
committerJeff Forcier <jeff@bitprophet.org>2023-01-11 20:24:13 -0500
commitec8948158e26df0ec549e333cc2ea4bb22d56350 (patch)
tree605531478922a9b56d867e8044387711f32b68d2 /tests/test_transport.py
parent19a00412bfecd43d4fa6a13459955ccb13f29e02 (diff)
downloadparamiko-ec8948158e26df0ec549e333cc2ea4bb22d56350.tar.gz
blacken
Diffstat (limited to 'tests/test_transport.py')
-rw-r--r--tests/test_transport.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_transport.py b/tests/test_transport.py
index 177e83da..d5cb5576 100644
--- a/tests/test_transport.py
+++ b/tests/test_transport.py
@@ -686,7 +686,7 @@ class TransportTest(unittest.TestCase):
self.assertEqual(chan.send_ready(), True)
total = 0
K = "*" * 1024
- limit = 1 + (64 * 2 ** 15)
+ limit = 1 + (64 * 2**15)
while total < limit:
chan.send(K)
total += len(K)
@@ -874,7 +874,7 @@ class TransportTest(unittest.TestCase):
for val, correct in [
(4095, MIN_PACKET_SIZE),
(None, DEFAULT_MAX_PACKET_SIZE),
- (2 ** 32, MAX_WINDOW_SIZE),
+ (2**32, MAX_WINDOW_SIZE),
]:
self.assertEqual(self.tc._sanitize_packet_size(val), correct)
@@ -885,7 +885,7 @@ class TransportTest(unittest.TestCase):
for val, correct in [
(32767, MIN_WINDOW_SIZE),
(None, DEFAULT_WINDOW_SIZE),
- (2 ** 32, MAX_WINDOW_SIZE),
+ (2**32, MAX_WINDOW_SIZE),
]:
self.assertEqual(self.tc._sanitize_window_size(val), correct)
@@ -950,7 +950,7 @@ class TransportTest(unittest.TestCase):
verify behaviours sending various instances to a channel
"""
self.setup_test_server()
- text = u"\xa7 slice me nicely"
+ text = "\xa7 slice me nicely"
with self.tc.open_session() as chan:
schan = self.ts.accept(1.0)
if schan is None: