File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,6 @@ def setUp(self):
124
124
self .stdin_cols , 0 , 0 )
125
125
self .addCleanup (_set_term_winsz , pty .STDIN_FILENO , old_stdin_winsz )
126
126
except OSError :
127
- # possible reason: current stdin is not a tty
128
127
pass
129
128
130
129
def handle_sig (self , sig , frame ):
@@ -145,7 +144,7 @@ def test_openpty(self):
145
144
try :
146
145
mode = tty .tcgetattr (pty .STDIN_FILENO )
147
146
except tty .error :
148
- # possible reason: current stdin is not a tty
147
+ # not a tty or bad/closed fd
149
148
debug ("tty.tcgetattr(pty.STDIN_FILENO) failed" )
150
149
mode = None
151
150
@@ -165,7 +164,6 @@ def test_openpty(self):
165
164
self .assertEqual (new_stdin_winsz , target_stdin_winsz ,
166
165
"pty.STDIN_FILENO window size unchanged" )
167
166
except OSError :
168
- # possible reason: current stdin is not a tty
169
167
warnings .warn ("Failed to set pty.STDIN_FILENO window size" )
170
168
pass
171
169
You can’t perform that action at this time.
0 commit comments