summaryrefslogtreecommitdiff
path: root/pexpect
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #698 from stesser/masterHEADmasterRed_M2023-04-031-0/+2
|\ | | | | Make test_expect.py work on POSIX systems that are not Linux based
| * Disable baacketed-paste mode in bash 5.1 and newer (issue #669)Stefan Eßer2021-09-221-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge pull request #728 from rafrafek/patch-1Red_M2023-04-031-0/+6
|\ \ | | | | | | Update docs to use context manager
| * | Update docs to use context managerRafał2022-11-091-0/+6
| | | | | | | | | Add an example to the docs of how to use spawn() function with context manager.
* | | Merge pull request #745 from tapple/socket_spawnRed_M2023-03-142-1/+150
|\ \ \ | | | | | | | | Socket Pexpect (for Windows support)
| * | | docsTapple2023-02-212-5/+7
| | | |
| * | | docsTapple2023-02-211-0/+2
| | | |
| * | | renamed module socket_expect to socket_pexpectTapple2023-02-211-0/+0
| | | |
| * | | renamed module socket_spawn to socket_expectTapple2023-02-211-0/+0
| | | |
| * | | socketspawn basic test case, copied from test_fdspawnTapple2023-02-211-14/+9
| | | |
| * | | socket_spawnTapple2023-02-211-0/+150
| | | |
* | | | Merge branch 'pexpect:master' into modern_asyncFilippo Carra2023-02-271-3/+2
|\ \ \ \ | |/ / /
| * | | Remove deprecated RSAAuthentication option (SSHv1), fixes #717Lood2023-02-141-3/+2
| |/ /
* | | refactor(_async.py): introduce modern coroutine syntaxFilippo Carra2022-11-233-103/+257
|/ / | | | | | | 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.
* | Merge pull request #560 from EmersonPrado/coerce-regex-bytesRed_M2022-02-061-0/+11
|\ \ | |/ |/| [Issue #558] Coerce compiled regex patterns type according to spawn encoding
| * Coerce compiled regex patterns to non-bytes type in non-bytes modeemerson.prado2019-03-051-0/+3
| |
| * Coerce compiled regex patterns to bytes type in bytes modeemerson.prado2019-03-051-0/+8
| |
* | Set daemon attribute instead of using setDaemon method that was deprecated ↵Karthikeyan Singaravelan2021-04-171-1/+1
| | | | | | | | in Python 3.10
* | Spelling fixesVille Skyttä2020-05-092-2/+2
| |
* | fix run's docstring. Benedek Racz2020-04-071-1/+1
| | | | | | The example code was not shown as code.
* | Do not directly call python and use sys.executableTomáš Chvátal2020-03-121-1/+1
| | | | | | | | | | This makes sure the tests and wrapper works on systems where there is no python2 nor /usr/bin/python available
* | Update version # for new releasedluyer2020-01-161-1/+1
| |
* | Accumulate async data correctly after future donedluyer2020-01-151-0/+1
| |
* | Avoid calling getvalue() twice in a rowdluyer2020-01-141-1/+1
| |
* | Undo incorrect formatting updatedluyer2020-01-141-1/+1
| |
* | Whitespace cleanup.dluyer2020-01-101-2/+2
| |
* | Whitespace cleanupdluyer2020-01-101-1/+1
| |
* | Whitespace cleanupdluyer2020-01-101-2/+2
| |
* | Updated expect_loop for split new_datadluyer2020-01-091-5/+7
| |
* | Split new_data initial and subsequent callsdluyer2020-01-091-53/+59
| | | | | | 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.
* | Update _async.pydluyer2020-01-091-4/+1
| |
* | Merge pull request #5 from dluyer/masterdluyer2020-01-092-5/+12
|\ \ | | | | | | Merge from master
| * | Disable chaining Timeout and EOF exceptionsMartin Di Paola2019-12-091-2/+8
| | | | | | | | | | | | | | | | | | 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.
| * | Fix last commit.Red_M2019-10-311-2/+2
| | |
| * | Add character read back value to allow for tracebacks to contain more data ↵Red_M2019-10-301-3/+4
| | | | | | | | | | | | about why an error occurred.
* | | Updates from internal code review.dluyer2019-08-021-2/+7
| | |
* | | Update expect.pydluyer2019-08-021-2/+2
| | |
* | | Update expect.pydluyer2019-08-021-4/+0
| | |
* | | Update expect.pydluyer2019-08-021-2/+2
| | |
* | | Update expect.pydluyer2019-08-021-17/+63
| | |
* | | Update spawnbase.pydluyer2019-08-021-0/+3
| | |
* | | Fix missing data in 'before', especially after timeoutsdluyer2019-08-011-6/+10
|/ / | | | | | | | | | | | | | | | | | | | | | | - 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
* | Merge pull request #537 from giovanism/patch-1Thomas Kluyver2019-05-161-5/+9
|\ \ | | | | | | interact: Add Python 3 compatibility warning
| * | interact: Add Python 3 compatibility warningGiovan Isa Musthofa2019-04-161-5/+9
| | | | | | | | | | | | Close https://github.com/pexpect/pexpect/issues/517
* | | Update version number, docs and release history due to #528, #562 and #563.Red_M2019-03-242-17/+16
| | |
* | | Merge branch 'master' of https://github.com/pexpect/pexpect into patch-1Tom Gillespie2019-03-231-1/+5
|\ \ \
| * \ \ Merge pull request #528 from tschmid/pxssh_customizationRed_M2019-03-231-2/+6
| |\ \ \ | | |_|/ | |/| | Allow customized pxssh client
| | * | Allow customized pxssh clientThomas Schmid2018-09-051-2/+6
| | |/ | | | | | | | | | This can be very useful if you want to run the pxssh client in a network namespace.
* | | pxssh.login require either username or ssh_configTom Gillespie2019-03-231-2/+37
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | add use_poll to pxsshGerardo Poggio2018-10-261-2/+2
|/