summaryrefslogtreecommitdiff
path: root/tests/test_sftp_big.py
diff options
context:
space:
mode:
authorScott Maxwell <scott@codecobblers.com>2013-11-01 09:49:52 -0700
committerScott Maxwell <scott@codecobblers.com>2013-11-01 09:49:52 -0700
commit9662a7f779636f0328263a81cdeb76af25802970 (patch)
tree0d0caa288159db9439e22039b21127201fc09017 /tests/test_sftp_big.py
parent06b866cf406c035ecaffd7a8abd31d6e07b8811a (diff)
downloadparamiko-9662a7f779636f0328263a81cdeb76af25802970.tar.gz
Changes inspired by the nischu7 branch
Diffstat (limited to 'tests/test_sftp_big.py')
-rw-r--r--tests/test_sftp_big.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_sftp_big.py b/tests/test_sftp_big.py
index b7ffe0b5..c1d34d7c 100644
--- a/tests/test_sftp_big.py
+++ b/tests/test_sftp_big.py
@@ -92,7 +92,7 @@ class BigSFTPTest (unittest.TestCase):
write a 1MB file with no buffering.
"""
sftp = get_sftp()
- kblob = (1024 * 'x')
+ kblob = (1024 * b('x'))
start = time.time()
try:
f = sftp.open('%s/hongry.txt' % FOLDER, 'w')
@@ -246,7 +246,7 @@ class BigSFTPTest (unittest.TestCase):
without using it, to verify that paramiko doesn't get confused.
"""
sftp = get_sftp()
- kblob = (1024 * 'x')
+ kblob = (1024 * b('x'))
try:
f = sftp.open('%s/hongry.txt' % FOLDER, 'w')
f.set_pipelined(True)
@@ -347,7 +347,7 @@ class BigSFTPTest (unittest.TestCase):
write a 1MB file, with no linefeeds, and a big buffer.
"""
sftp = get_sftp()
- mblob = (1024 * 1024 * 'x')
+ mblob = (1024 * 1024 * b('x'))
try:
f = sftp.open('%s/hongry.txt' % FOLDER, 'w', 128 * 1024)
f.write(mblob)
@@ -364,7 +364,7 @@ class BigSFTPTest (unittest.TestCase):
sftp = get_sftp()
t = sftp.sock.get_transport()
t.packetizer.REKEY_BYTES = 512 * 1024
- k32blob = (32 * 1024 * 'x')
+ k32blob = (32 * 1024 * b('x'))
try:
f = sftp.open('%s/hongry.txt' % FOLDER, 'w', 128 * 1024)
for i in range(32):