diff options
author | Jeff Quast <contact@jeffquast.com> | 2015-10-04 09:56:44 -0700 |
---|---|---|
committer | Jeff Quast <contact@jeffquast.com> | 2015-10-04 09:56:44 -0700 |
commit | 240d7bd2329ad866154371e40f68e58310e3c219 (patch) | |
tree | 8d6b04c93f620ec5a607f449602d68e304bea7a0 | |
parent | 8510cfaa238b21feecf3bd19e7a5b49b4d38b50d (diff) | |
download | pexpect-git-240d7bd2329ad866154371e40f68e58310e3c219.tar.gz |
comment about the need of '\\' to trigger testcase
-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']) |