diff options
-rw-r--r-- | tests/test_replwrap.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_replwrap.py b/tests/test_replwrap.py index 52293fb..26ff53c 100644 --- a/tests/test_replwrap.py +++ b/tests/test_replwrap.py @@ -42,6 +42,12 @@ class REPLWrapTestCase(unittest.TestCase): def test_long_running_continuation(self): " also ensure timeout when used within continuation prompts. " bash = replwrap.bash() + # The two extra '\\' in the following expression force a continuation + # prompt: + # $ echo begin\ + # + ; + # $ sleep 2 + # $ echo done res = bash.run_command("echo begin\\\n;sleep 2\r\necho done") self.assertEqual(res.strip().splitlines(), ['begin', 'done']) |