diff options
author | Stanislav Levin <slev@altlinux.org> | 2018-03-21 17:55:02 +0300 |
---|---|---|
committer | Stanislav Levin <slev@altlinux.org> | 2018-08-20 17:13:51 +0300 |
commit | 46a4cf058d805b7eb465f8b14dbe6c415e2dc67c (patch) | |
tree | 298e1add932a19418765b91e02633c05c39754c2 | |
parent | ec0e234f0b9b7bcac11acb5ac545cff50085e372 (diff) | |
download | pexpect-46a4cf058d805b7eb465f8b14dbe6c415e2dc67c.tar.gz |
Fix "test_bash" test
Due to an old bash version(3.x) on some systems there is no builtin "time"
command. Another more common one can be used for.
Fixes: https://github.com/pexpect/pexpect/issues/521
-rw-r--r-- | tests/test_replwrap.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_replwrap.py b/tests/test_replwrap.py index b4477a8..06ca07b 100644 --- a/tests/test_replwrap.py +++ b/tests/test_replwrap.py @@ -24,8 +24,8 @@ class REPLWrapTestCase(unittest.TestCase): def test_bash(self): bash = replwrap.bash() - res = bash.run_command("time") - assert 'real' in res, res + res = bash.run_command("alias") + assert 'alias' in res, res try: bash.run_command('') |