summaryrefslogtreecommitdiff
path: root/tests/test_pxssh.py
Commit message (Collapse)AuthorAgeFilesLines
* assertRaises is not 2.6->3.x compatiblejquast2014-03-061-1/+7
|
* closes issue #42, self.buffer decoded implicitlyjquast2014-03-061-2/+9
| | | | | | | | | | | | | | | | | | | create a unit tests which otherwise failed for python3 only: mock the return value of set_unique_prompt for a value of False, which causes ExceptionPxssh to raise. previously, displaying self.buffer within the exception causes bytes() to be implicitly decoded to str (unicode type in py3). python2 didn't care. it is implicitly decoded as 'ascii' encoding, without warning. Then, use the %r to represent it as b'xyz' in python3. Also, display what we expected to be more helpful for the user. What is actually happening here is the 'set PS1=' command is used so that pexpect can more regularly understand when the prompt is awaiting command input, and it is set to something more predictable. You'd be suprised what kind of hackery can happen to prompt values even if PS1 is explicitly set, especially in today's oh-my-zhs and git-prompt.sh extensions.
* Test and cleanup of pexpect.pshThomas Kluyver2013-10-211-2/+3
|
* Add test for pxssh moduleThomas Kluyver2013-10-211-0/+39