| Commit message (Collapse) | Author | Age | Files | Lines |
| |\
| |
| | |
Make test_expect.py work on POSIX systems that are not Linux based
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The bash versions starting with 5.1 have bracketed paste mode enabled
by default, leading to test failures in replwrap.bash(), e.g.:
self = <tests.test_replwrap.REPLWrapTestCase testMethod=test_multiline>
def test_multiline(self):
bash = replwrap.bash()
res = bash.run_command("echo '1 2\n3 4'")
> self.assertEqual(res.strip().splitlines(), ['1 2', '3 4'])
E AssertionError: Lists differ: ['\x1b[?2004l', '\x1b[?2004h\x1b[?2004l',
'1 2', '3 4', '\x1b[?2004h'] != ['1 2', '3 4']
E
E First differing element 0:
E '\x1b[?2004l'
E '1 2'
E
E First list contains 3 additional elements.
E First extra element 2:
E '1 2'
E
E - ['\x1b[?2004l', '\x1b[?2004h\x1b[?2004l', '1 2', '3 4', '\x1b[?2004h']
E + ['1 2', '3 4']
With bracketed test mode disabled, the tests that were affected by the
inserted escape sequences succeed.
|
| |\ \
| | |
| | | |
Update docs to use context manager
|
| | | |
| | |
| | | |
Add an example to the docs of how to use spawn() function with context manager.
|
| |\ \ \
| | | |
| | | | |
Socket Pexpect (for Windows support)
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| |\ \ \ \
| |/ / / |
|
| | |/ / |
|
| |/ /
| |
| |
| | |
Python 3.5 introduced the await and async def keywords. This change imports the coroutines from two different places, depending on the running Python version.
|
| |\ \
| |/
|/| |
[Issue #558] Coerce compiled regex patterns type according to spawn encoding
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
in Python 3.10
|
| | | |
|
| | |
| |
| | |
The example code was not shown as code.
|
| | |
| |
| |
| |
| | |
This makes sure the tests and wrapper works on systems where there
is no python2 nor /usr/bin/python available
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| | |
expect_{loop,async} call new_data at start, when there isn't really new data. Reviewer requested a split of functionality here into two routines.
|
| | | |
|
| |\ \
| | |
| | | |
Merge from master
|
| | | |
| | |
| | |
| | |
| | |
| | | |
The code works in Python 2.x and 3.x but it should be replaced by "raise
exception from other-exception" when the support for Python 2.x gets
dropped.
|
| | | | |
|
| | | |
| | |
| | |
| | | |
about why an error occurred.
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| |/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- Fix 'before' return on eof/timeout/error.
- Fix behavior when searchwindowsize is increased between calls to expect_loop (existing code could discard required content).
Note, this is less efficient, but it is correct. The prior changes improved benchmarks but broke correctness; I haven't benchmarked to see if this is better or worse than the original code, before buffer_type use was introduced. It would be possible to make this more efficient with further complexity.
Breakage introduced:
https://github.com/pexpect/pexpect/commit/fd7332f59e003a8ee658647f883d4b03018c5e5b#diff-244f4b51bfbbbcb072d1428a79b9f4f7
Prior partial fix:
https://github.com/pexpect/pexpect/commit/5a2e63f3fbfb39458c832a65bf8db330e954b8f6#diff-244f4b51bfbbbcb072d1428a79b9f4f7
|
| |\ \
| | |
| | | |
interact: Add Python 3 compatibility warning
|
| | | |
| | |
| | |
| | | |
Close https://github.com/pexpect/pexpect/issues/517
|
| | | | |
|
| |\ \ \ |
|
| | |\ \ \
| | |_|/
| |/| | |
Allow customized pxssh client
|
| | | |/
| | |
| | |
| | | |
This can be very useful if you want to run the pxssh client in a network namespace.
|
| |/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
If pxssh.login is called with an ssh_config then do not require username since it can be supplied via the config and some programs do not want to manage the username at all since it would require parsing the ssh config.
This commit removes the independent username parameter when formatting cmd and instead appends the flag and the username to ssh_options if a username is provided.
If neither username nor ssh_config is provided raise a TypeError in line with the error raised natively if username was not provided as a required positional argument.
Tests ensure that ssh_config lists a username for the server in question
so the user running the program does not leak. Note that ssh_config
keywords are case-insensitive.
This commit by itself fails tests because it has been modified to
simplifiy the merge commit.
|
| |/ |
|