summaryrefslogtreecommitdiff
path: root/tests/test_replwrap.py
diff options
context:
space:
mode:
authorRed_M <1468433+Red-M@users.noreply.github.com>2023-04-03 02:48:18 +1000
committerGitHub <noreply@github.com>2023-04-03 02:48:18 +1000
commit2532721644781543ca660e52d48a35bd93872fc1 (patch)
treeaaa0b5e0b8a30de11f18f24b489d479bd89e6535 /tests/test_replwrap.py
parent06f4ed2be13b9209d1ac89c72bf4a19d550cc846 (diff)
parent000a8684bd109c3f9c9b5fabd95add4743b7f45a (diff)
downloadpexpect-master.tar.gz
Merge pull request #698 from stesser/masterHEADmaster
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.py4
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):