Skip to content

Commit 1bad1ca

Browse files
committed
Change OSError to tty.error.
Signed-off-by: Soumendra Ganguly <soumendraganguly@gmail.com>
1 parent bed038e commit 1bad1ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Lib/test/test_pty.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def setUp(self):
9696
self.stdin_dim = tty.tcgetwinsize(pty.STDIN_FILENO)
9797
self.addCleanup(tty.tcsetwinsize, pty.STDIN_FILENO, \
9898
self.stdin_dim)
99-
except OSError:
99+
except tty.error:
100100
pass
101101

102102
def handle_sig(self, sig, frame):

0 commit comments

Comments
 (0)