summaryrefslogtreecommitdiff
path: root/tests/test_interact.py
Commit message (Collapse)AuthorAgeFilesLines
* Always use self.PYTHONBIN not 'python' or sys.executable in tests (#580)dluyer2019-08-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * s/sys.executable/self.PYTHONBIN/ * s/sys.executable/self.PYTHONBIN/ * Update test_isalive.py * s/sys.executable/self.PYTHONBIN/ * s/sys.executable/self.PYTHONBIN/ * Support cases where pythonbin != sys.executable * Support cases where pythonbin != sys.executable * Fix raw use of 'python' to use self.PYTHONBIN * Fix test_pxssh.py when PYTHONBIN != 'python' The fake 'ssh' will be started via #!/usr/bin/env python, when it may need to use sys.executable or some other self.PYTHONBIN. * Remove unnecessary changes from pull request. * Remove unnecessary changes from pull request.
* Do not assert trailing output on TRAVIS-CIJeff Quast2015-09-201-5/+13
|
* interact tests: prefer getch over echo_w_promptJeff Quast2015-09-201-41/+20
| | | | | this ensures more reliable clean exit, as is necessary in negative test for interact(escape_character=None)
* Use ^C in test_interact_escape_None, ^D unreliableJeff Quast2015-09-201-2/+1
| | | | | Test intermittently fails PyPy and Travis-CI hosts, where EOF is incorrectly interpreted instead of captured as exception.
* Allow {p}.interact(escape_character=None)Jeff Quast2015-09-181-0/+15
| | | | | | | | | | | For those who wish to disable the ability to escape using escape_character until normal process termination, they may now set the value of escape_character to None. Some of the related docstring on escape_character was made more brief and clear about its related value behavior. This closes #131 #132 #167
* workaround travis-ci's strange EOF issueJeff Quast2015-04-241-6/+12
|
* Make a modified copy of os.environ for interact testsThomas Kluyver2014-06-151-13/+11
|
* python3.2 accommodationsjquast2014-06-151-4/+4
|
* Improve EOF through test -> interact -> echo_promptjquast2014-06-151-34/+52
|
* Test escaping interact modeThomas Kluyver2014-06-041-0/+2
|
* Allow subprocess tests to import pexpectThomas Kluyver2014-06-011-2/+8
|
* Fix imports in tests for Python 3Thomas Kluyver2014-06-011-1/+1
| | | | Closes gh-59
* Make tests for interact more robust on slow machinesThomas Kluyver2013-09-261-6/+8
|
* Fix unicode literals for Python 3.2Thomas Kluyver2013-09-251-9/+10
|
* Fix interact_unicode testThomas Kluyver2013-09-251-11/+17
|
* Remove skipped test_interact_threadThomas Kluyver2013-09-251-30/+0
|
* Test interact method on spawnu classThomas Kluyver2013-09-251-6/+5
|
* Clean up test_interactThomas Kluyver2013-09-251-12/+2
|
* Don't use six for testsThomas Kluyver2013-09-231-7/+6
|
* todo item for py3jquast2013-09-221-0/+1
|
* hopefully fix py3 errors with correct string fmtjquast2013-09-221-2/+2
|
* py2.5 compatibilities w/six.pyjquast2013-09-221-6/+7
| | | | | | | | | | -except Exception as e: +except Exception, err: the unfortunate use of six.b('') instead of b'' print(arg0, arg1) => six.print_(arg0, arg1) some autopep8 -i is definitely called for, some of these test cases are darn unreadable, but did partially pep8 some of the really-long-over-80col-lines.
* use proper %s (arg,) formatting,jquast2013-09-221-1/+1
| | | | hopefully, fixing older python error
* add unicode test and force str() type in python3jquast2013-09-221-7/+26
| | | | | | sendline('xyz') in python3 will send unicode, what is expected of the spawn interface is raw bytes. The proper procedure should be to use sendline(b'xyz'). The interact() method of spawnu() is also tested to ensure unicode is accepted (hamsterface!)
* Skip failing testThomas Kluyver2013-09-171-5/+6
|
* Moved everything up one directory level.Noah Spurrier2012-10-261-0/+81