Skip to content

Commit

Permalink
Tests: Use readline to read full output of closing parent process
Browse files Browse the repository at this point in the history
closes pexpect#7
  • Loading branch information
tomspur committed Jan 15, 2015
1 parent aa02d6b commit be2ecd5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_spawn.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def test_spawn_sh(self):
assert b'rebar' in response

p.sendeof()
p.read()
p.readline()

with self.assertRaises(EOFError):
p.read()
Expand All @@ -31,7 +31,7 @@ def test_spawn_unicode_sh(self):
assert u'rebar' in response

p.sendeof()
p.read()
p.readline()

with self.assertRaises(EOFError):
p.read()
p.read()

0 comments on commit be2ecd5

Please sign in to comment.