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):
124124 self .stdin_cols , 0 , 0 )
125125 self .addCleanup (_set_term_winsz , pty .STDIN_FILENO , old_stdin_winsz )
126126 except OSError :
127- # possible reason: current stdin is not a tty
128127 pass
129128
130129 def handle_sig (self , sig , frame ):
@@ -145,7 +144,7 @@ def test_openpty(self):
145144 try :
146145 mode = tty .tcgetattr (pty .STDIN_FILENO )
147146 except tty .error :
148- # possible reason: current stdin is not a tty
147+ # not a tty or bad/closed fd
149148 debug ("tty.tcgetattr(pty.STDIN_FILENO) failed" )
150149 mode = None
151150
@@ -165,7 +164,6 @@ def test_openpty(self):
165164 self .assertEqual (new_stdin_winsz , target_stdin_winsz ,
166165 "pty.STDIN_FILENO window size unchanged" )
167166 except OSError :
168- # possible reason: current stdin is not a tty
169167 warnings .warn ("Failed to set pty.STDIN_FILENO window size" )
170168 pass
171169
You can’t perform that action at this time.
0 commit comments