| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
Make test_expect.py work on POSIX systems that are not Linux based
|
| |
| |
| |
| |
| |
| | |
There is no output if no alias has been defined and the test fails in
that case. Adding an alias definition makes the alias command return
at least that just added entry.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| | |
The assertRaisesRegexp function appeared in Python-3.1 and was renamed
to assertRaisesRegex in Python-3.2.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The cat command on FreeBSD blocks if the default input buffer fills
and not output can be sent. The test used to generate more than 10 KB
of data before accepting the output generated by the cat program,
causing cat to block (stop reading input) until the output buffer has
been drained.
There is no reason to send long lines in this test, therefore it is
easily possible to perform the tests with lines that do not cause more
than 4 KB (the default input buffer size on FreeBSD) to be sent before
output from the cat program is checked.
In order to not depend on such buffer sizes pexpect needs to check for
output from the spawned command and buffer it, before it gets to
execute the expect() function. Apparently this is not happening and
thus the system dependent buffer size limit makes this test fail if
its capacity is exceeded.
|
| |
| |
| |
| |
| |
| |
| |
| | |
The hard-coded use of /bin/bash and of long options for nl does only
work on Linux based systems with GNU textutils.
If POSIX commands and options are used, this test becomes portable to
other systems than Linux.
|
|\ \
| | |
| | | |
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)
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
|\ \ \ \
| |/ / /
|/| | | |
refactor(_async.py): introduce modern coroutine syntax
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
deprecation warning for get_event_loop() to be taken care in other change
Signed-off-by: Filippo Carra <karrukola@users.noreply.github.com>
|
| |\ \ \
| |/ / /
|/| | | |
|
|\ \ \ \
| | | | |
| | | | | |
Remove deprecated RSAAuthentication option (SSHv1), fixes #717
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
Ensure test_run.py works when system-wide bashrc produces output
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The --rcfile option to bash does not prevent the system-wide
/etc/bash.bashrc script from running (contrary to the Debian man-page).
This causes test_run.py to fail when the system-wide script produces
output (as is the case in an Ubuntu image where the regular user belongs
to the "sudo" group and the system-wide script produces an informational
message about sudo usage).
Rather than rely on --rcfile, this patch changes the test to use --norc
(which does suppress the execution of the system-wide bashrc), and
changes PS1 via the inherited environment instead (this also slightly
simplifies the fixture setup too as tempfile is no longer required).
|
|\ \ \ \
| | | | |
| | | | | |
Replace deprecated unittest.makeSuite
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This function was never formally documented, but has been deprecated and
will be removed in Python 3.13. Replaced with
unittest.TestLoader.loadTestsFromTestCase.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Fix SyntaxWarning in fakessh by using raw string
|
| |/ / / / |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
tests: Replace assertRaisesRegexp with assertRaisesRegex
|
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | | |
unittest.TestCase.assertRaisesRegexp was deprecated in Python 3.2 and is
removed in Python 3.12.
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
test_interact: update Travis overrides to use generic CI variable
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | | |
These tests have the same issues on GitHub Actions, so switch to use the
more generic 'CI' variable to detect when being run on a CI platform to
handle these tests properly.
|
| | |\ \
| |_|/ /
|/| | | |
|
|\ \ \ \
| | | | |
| | | | | |
Port CI to use GitHub Actions
|
|/ / / / |
|
| |/ /
|/| |
| | |
| | | |
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.
|
|\ \ \
| |/ /
|/| | |
Remove `pytest-capturelog` from testing requirements
|
|/ /
| |
| |
| |
| |
| |
| | |
The pytest-capturelog plugin no longer exists; its functionality has
been merged into the pytest core since ~3.3. Remove the dependency.
Fixes #729
|
|\ \
| | |
| | | |
[Issue #558] Coerce compiled regex patterns type according to spawn encoding
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | | |
Examples of how to use Pexpect and Pyte (issue #587)
|
| | | | |
|
|\ \ \ \
| |_|_|/
|/| | | |
fix `test_pager_as_cat` test case on Solaris
|
| | | | |
|
| | | | |
|
|\ \ \ \
| |/ / /
|/| | | |
Set daemon attribute instead of using setDaemon method that was deprecated in Python 3.10
|