Skip to content

Commit

Permalink
allow setecho in master process to fail (on solaris)
Browse files Browse the repository at this point in the history
  • Loading branch information
jquast committed Jun 1, 2014
1 parent 39519c6 commit 822ffc8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pexpect/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,11 @@ def _spawn(self, command, args=[]):

# Parent
self.setwinsize(24, 80)
self.setecho(self.echo)
try:
self.setecho(self.echo)
except OSError:
# Solaris, etc. cannot set echo from master
pass
self.terminated = False
self.closed = False

Expand Down

0 comments on commit 822ffc8

Please sign in to comment.