diff options
author | Red_M <1468433+Red-M@users.noreply.github.com> | 2023-04-03 02:48:18 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-03 02:48:18 +1000 |
commit | 2532721644781543ca660e52d48a35bd93872fc1 (patch) | |
tree | aaa0b5e0b8a30de11f18f24b489d479bd89e6535 /tests/test_replwrap.py | |
parent | 06f4ed2be13b9209d1ac89c72bf4a19d550cc846 (diff) | |
parent | 000a8684bd109c3f9c9b5fabd95add4743b7f45a (diff) | |
download | pexpect-master.tar.gz |
Make test_expect.py work on POSIX systems that are not Linux based
Diffstat (limited to 'tests/test_replwrap.py')
-rw-r--r-- | tests/test_replwrap.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_replwrap.py b/tests/test_replwrap.py index e29080d..9e95112 100644 --- a/tests/test_replwrap.py +++ b/tests/test_replwrap.py @@ -25,7 +25,7 @@ class REPLWrapTestCase(unittest.TestCase): def test_bash(self): bash = replwrap.bash() - res = bash.run_command("alias") + res = bash.run_command("alias xyzzy=true; alias") assert 'alias' in res, res try: @@ -92,7 +92,9 @@ class REPLWrapTestCase(unittest.TestCase): "PS1='{0}' PS2='{1}' " "PROMPT_COMMAND=''") + print(repl) res = repl.run_command("echo $HOME") + print(res) assert res.startswith('/'), res def test_python(self): |