summaryrefslogtreecommitdiff
path: root/pexpect/replwrap.py
Commit message (Collapse)AuthorAgeFilesLines
* Don't use deprecated spawnu in replwrap testsThomas Kluyver2015-10-041-2/+3
|
* Collect output as list instead of stringThomas Kluyver2015-10-041-3/+3
| | | | This is supposed to be more efficient
* Use u-prefix for strings instead of u() functionThomas Kluyver2015-10-041-9/+5
| | | | We're not supporting Python 3.2.
* This resolves two issues with replwrap,jquast2015-10-041-2/+4
| | | | | | | | | | | * for multiple commands, such as in ``'\n'.join((cmd, cmd2))``, cmd2 and beyond previously used a ``timeout`` of 1, instead of the specified or default ``timeout``. * furthermore, the output of multi-command output was discarded, only the last-most command output was received. Resolved by joining the result of ``self.child.before``.
* accept unicode cmd on Python 2Min RK2015-06-161-1/+2
|
* Bugfix for solaris in replwrap.bash()Jeff Quast2014-11-231-1/+1
| | | | | | | | Forgot to set ``echo=False`` when calling spawnu() directly in replwrap.bash(), resulting in IOError on SunOs: IOError: [Errno 22] Invalid argument: setecho() may not be called on this platform.
* Make replwrap.bash() robust against custom prompts in bashrcThomas Kluyver2014-09-211-2/+5
| | | | | | By providing our own bashrc which overrides PS1, we can have a consistent prompt without breaking other customisations of bash that people may want to keep, such as aliases defined in bashrc.
* Allow replwrap to reset pager so bash doesn't get stuck displaying thingsThomas Kluyver2014-06-261-2/+9
|
* Solaris support, tested on SmartOS from cron(1).Jeff Quast2014-06-081-3/+6
|
* Fixing various prompt issues with bash ReplWrapperjquast2014-06-071-7/+9
| | | | | | allow matching a regular expression, use setUp and tearDown to putenv & getenv PS1, PS2 unset PROMPT_COMMAND
* Use bash for testing replwrap, avoiding PyPy's different REPLThomas Kluyver2014-05-311-1/+1
|
* Use explicit positional string formatting for Python 2.6Thomas Kluyver2014-05-181-2/+2
|
* Update replwrap docsThomas Kluyver2014-05-181-1/+7
|
* Format the new prompts into the prompt change command, simplifying ↵Thomas Kluyver2014-05-181-6/+5
| | | | instantiation of a REPLWrapper
* Handle multiline commands in replwrapThomas Kluyver2014-05-181-9/+33
|
* Wrap unicode literals in function calls for Python 3.2Thomas Kluyver2014-05-181-4/+13
|
* Add high level API for wrapping REPLsThomas Kluyver2014-05-121-0/+60