paramiko/tests
Bobby Impollonia ae3ecbe548 Remove comparison between int and str
The code had been doing 'n < self.__in_buffer' when it
wanted to be doing 'n < len(self.__in_buffer)'

In Python 2.x, this comparison (int < str) is always True.
I found this while porting to Python 3 where it raises
an error.

The code has been working without complaints because always
taking the true branch of this conditional is actually fine.
We don't need the false branch, so drop the check entirely.
(cherry picked from commit 0a013f829e)
2012-09-23 16:18:57 -07:00
..
loop.py Remove comparison between int and str 2012-09-23 16:18:57 -07:00
stub_sftp.py fix my email address to be the current one. 2009-07-19 19:45:02 -07:00
test_auth.py fix my email address to be the current one. 2009-07-19 19:45:02 -07:00
test_buffered_pipe.py fix my email address to be the current one. 2009-07-19 19:45:02 -07:00
test_client.py bug 426925: lookup host keys correctly when they have a different port. 2009-11-01 21:28:47 -08:00
test_dss.key [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-92] 2004-09-25 22:07:59 +00:00
test_dss_password.key [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-19] 2005-06-28 07:24:10 +00:00
test_file.py fix my email address to be the current one. 2009-07-19 19:45:02 -07:00
test_hostkeys.py fix my email address to be the current one. 2009-07-19 19:45:02 -07:00
test_kex.py Use Crypto.Random rather than Crypto.Util.RandomPool. 2010-08-03 00:13:08 +02:00
test_message.py fix my email address to be the current one. 2009-07-19 19:45:02 -07:00
test_packetizer.py fix my email address to be the current one. 2009-07-19 19:45:02 -07:00
test_pkey.py Use Crypto.Random rather than Crypto.Util.RandomPool. 2010-08-03 00:13:08 +02:00
test_rsa.key [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-92] 2004-09-25 22:07:59 +00:00
test_rsa_password.key [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-19] 2005-06-28 07:24:10 +00:00
test_sftp.py code style and fix test. 2010-04-13 18:52:29 -07:00
test_sftp_big.py fix my email address to be the current one. 2009-07-19 19:45:02 -07:00
test_transport.py fix my email address to be the current one. 2009-07-19 19:45:02 -07:00
test_util.py Use Crypto.Random rather than Crypto.Util.RandomPool. 2010-08-03 00:13:08 +02:00