summaryrefslogtreecommitdiffhomepage
path: root/tests
AgeCommit message (Collapse)Author
2014-08-15Let packetizer handle 0-length sends from channel.Olle Lundberg
If the channel is closed the send method returs a response length of 0. This is not handled correctly by the packetizer and puts it in an infinite loop. (Fixes #156 for real :-) We make sure we don't do more than 10 iteration on a 0 length respose, but raise an EOFError.
2014-08-15Document what is breaking in the client tests.Olle Lundberg
2014-04-24Merge branch '1.13'Jeff Forcier
2014-04-24Fix some trailing whitespaceJeff Forcier
2014-04-24Merge updated a01e449 from al-tonioJeff Forcier
2014-04-24Merge branch '1.13'Jeff Forcier
2014-04-17BufferedFile.read() now returns byte strings instead of text stringsAntoine Brenner
It is the right thing to do since we have no idea what encoding the file is in, or even if the file is text data. BufferedFile.readline() is unchanged and returns text strings assuming the file is utf-8 encoded. This should fix the following issue: http://comments.gmane.org/gmane.comp.sysutils.backup.obnam/252 Antoine Brenner Conflicts: sites/www/changelog.rst
2014-04-16Merge branch '1.13'Jeff Forcier
2014-04-16Merge branch '1.12' into 1.13Jeff Forcier
Conflicts: paramiko/sftp_client.py sites/www/changelog.rst tests/test_sftp.py
2014-04-16Merge branch '1.11' into 1.12Jeff Forcier
2014-04-16Fix logging error in sftp_client for filenames containing the character.Jeff Forcier
Bug reported here: http://vlists.pepperfish.net/pipermail/obnam-flarn.net/2013-May/000767.html Antoine Brenner Backported to 1.11 by @bitprophet Conflicts: paramiko/sftp_client.py sites/www/changelog.rst tests/test_sftp.py
2014-04-14Merge branch 'master' into use-urandomAlex Gaynor
Conflicts: paramiko/dsskey.py paramiko/ecdsakey.py paramiko/hostkeys.py paramiko/kex_gex.py paramiko/kex_group1.py paramiko/pkey.py paramiko/primes.py paramiko/rsakey.py tests/test_pkey.py
2014-03-29Switch from using PyCrypto's Random to using os.urandom.Alex Gaynor
There's several reasons for this change: 1) It's faster for reads up to 1024 bytes (nearly 10x faster for 16 byte reads) 2) It receives considerably more security review since it's in the kernel. 3) It's yet another step towards running on PyPy. 4) Using userspace CSPRNGs is considered something of an anti-pattern. See: http://sockpuppet.org/blog/2014/02/25/safely-generate-random-numbers/ http://webcache.googleusercontent.com/search?q=cache:2nTvpCgKZXIJ:www.2uo.de/myths-about-urandom/+&cd=3&hl=en&ct=clnk&gl=us
2014-03-29Switched hash functions from PyCrypto to hashlib.Alex Gaynor
There's a few advantages to this: 1) It's probably fast, OpenSSL, which typically backs hashlib, receives far more attention for optimizaitons than PyCrypto. 2) It's the first step to supporting PyPy, where PyCrypto doesn't run.
2014-03-07Fix import * and a bunch of PEP8 formattingScott Maxwell
2014-03-07Start in on star import eradicationJeff Forcier
2014-03-07Skip failing test on Py3Jeff Forcier
2014-01-16Fix new test for Py3 and start server in tests instead of in setUp so we can ↵Scott Maxwell
skip starting server for test 5
2014-01-16Merge remote-tracking branch 'master/master' into py3-support-without-py25Scott Maxwell
Conflicts: paramiko/__init__.py setup.py tests/test_client.py
2014-01-16Add getcwd testScott Maxwell
2014-01-08Merge branch '1.11' into 1.12Jeff Forcier
Conflicts: NEWS
2014-01-08Saner (to me) positive assertionJeff Forcier
2014-01-08Small refactorJeff Forcier
2014-01-08No need for 'self.tc' within a single test :)Jeff Forcier
2014-01-08Add a testcase for client.save_host_keys.Martin Blumenstingl
2013-11-19Remove byte conversions and unhexlify calls that we only needed for Py2.5 ↵Scott Maxwell
support and use the `b` byte string marker instead
2013-11-19Remove `from __future__ import with_statement`Scott Maxwell
2013-11-19Remove unnecessary vars for openScott Maxwell
2013-11-19Use 'with' for opening most file and SFTPFIle objectsScott Maxwell
2013-11-19Remove eval that was required for Py25 supportScott Maxwell
2013-11-19Change all exceptions to modern format (not Py2.5 compatible)Scott Maxwell
2013-11-19Change conditional from PY3 to PY2 to be better prepared for a possible Py4.Scott Maxwell
2013-11-02Fix message to handle long properly, even on Py3Scott Maxwell
2013-11-02Fix some deprecation and resource warningsScott Maxwell
2013-11-02Make sftp.open handle binary and text, more type conversionScott Maxwell
2013-11-01Changes inspired by the nischu7 branchScott Maxwell
2013-11-01Have to use u'' format in test_sftp so this test won't run on Py3.2 unless ↵Scott Maxwell
we find a solution
2013-11-01Fixes for Python 2.5 and Python 3.2 supportScott Maxwell
2013-11-01Eliminate all uses of b'' syntax to allow for Python 2.5 supportScott Maxwell
2013-10-31More type fixesScott Maxwell
2013-10-31Fixes for test_sftpScott Maxwell
2013-10-31More type conversionScott Maxwell
2013-10-31More type fixupsScott Maxwell
2013-10-31Setup so we can run test_sftp_big independentlyScott Maxwell
2013-10-31Fix bytes/str type in more placesScott Maxwell
2013-10-30Convert and detect types properly, use helper constants, use StringIO and rangeScott Maxwell
2013-10-30Fix message sendingScott Maxwell
Create constants for byte messages, implement asbytes so many methods can take Message and key objects directly and split get_string into get_text and get_binary. Also, change int handling to use mpint with a flag whenever the int is greater than 32 bits.
2013-10-30Fix dict iters, sorts, exceptions, bytes renames and tuple argsScott Maxwell
2013-10-30Use test_path to avoid relative path issuesScott Maxwell
2013-10-30Fix importsScott Maxwell