diff options
author | jquast <contact@jeffquast.com> | 2014-06-07 21:25:20 -0700 |
---|---|---|
committer | Thomas Kluyver <takowl@gmail.com> | 2014-06-15 18:00:37 -0700 |
commit | 33375e861600051d0e98071192a08a5d7ccf6c87 (patch) | |
tree | 1fc58304130d46cd57affd8da41246fbf5b4fc8f /tests/echo_w_prompt.py | |
parent | 7f14d7cd7390816d96d2e511189bec22f6824d91 (diff) | |
download | pexpect-git-33375e861600051d0e98071192a08a5d7ccf6c87.tar.gz |
Improve EOF through test -> interact -> echo_prompt
Diffstat (limited to 'tests/echo_w_prompt.py')
-rw-r--r-- | tests/echo_w_prompt.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/echo_w_prompt.py b/tests/echo_w_prompt.py index 0706688..3c80553 100644 --- a/tests/echo_w_prompt.py +++ b/tests/echo_w_prompt.py @@ -7,5 +7,9 @@ except NameError: raw_input = input while True: - a = raw_input('<in >') - print('<out>', a, sep='')
\ No newline at end of file + try: + a = raw_input('<in >') + except EOFError: + print('<eof>') + break + print('<out>', a, sep='') |