Skip to content

Commit

Permalink
Only expect <eof> on non-PyPy implementations.
Browse files Browse the repository at this point in the history
I have previously encountered similar issues when sending ^C
rather than ^D when the terminal should be in raw_mode with
PyPy:

https://github.com/jquast/blessed/blob/213c3a52a8f64ae147f4cb240a85a7f789bfff5d/blessed/tests/test_keyboard.py#L430-L432
  • Loading branch information
jquast committed Sep 18, 2015
1 parent faff3e6 commit 4a7165c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_interact.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ def test_interact_escape_None(self):
p.sendline('')
p.expect('<out>\x1d')
p.sendcontrol('d')
p.expect('<eof>')
if platform.python_implementation() != 'PyPy':
p.expect('<eof>')
p.expect_exact('Escaped interact')
p.expect(pexpect.EOF)
assert not p.isalive()
Expand Down

0 comments on commit 4a7165c

Please sign in to comment.