Skip to content

Commit

Permalink
Change OSError to tty.error.
Browse files Browse the repository at this point in the history
Signed-off-by: Soumendra Ganguly <soumendraganguly@gmail.com>
  • Loading branch information
8vasu committed Feb 11, 2023
1 parent bed038e commit 1bad1ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_pty.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def setUp(self):
self.stdin_dim = tty.tcgetwinsize(pty.STDIN_FILENO)
self.addCleanup(tty.tcsetwinsize, pty.STDIN_FILENO, \
self.stdin_dim)
except OSError:
except tty.error:
pass

def handle_sig(self, sig, frame):
Expand Down

0 comments on commit 1bad1ca

Please sign in to comment.