File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,8 @@ def expectedFailureIfStdinIsTTY(fun):
79
79
return fun
80
80
81
81
def expectedFailureOnBSD (fun ):
82
- if platform .system ().endswith ("BSD" ):
82
+ PLATFORM = platform .system ()
83
+ if PLATFORM .endswith ("BSD" ) or PLATFORM == "Darwin" :
83
84
return unittest .expectedFailure (fun )
84
85
return fun
85
86
@@ -209,9 +210,9 @@ def test_openpty(self):
209
210
os .close (master_fd )
210
211
211
212
if winsz :
212
- winsz = struct .pack ("HHHH" , current_stdin_winsz .lines ,
213
- current_stdin_winsz .columns , 0 , 0 )
214
- fcntl .ioctl (pty .STDIN_FILENO , TIOCSWINSZ , winsz )
213
+ winsz = struct .pack ("HHHH" , current_stdin_winsz .lines ,
214
+ current_stdin_winsz .columns , 0 , 0 )
215
+ fcntl .ioctl (pty .STDIN_FILENO , TIOCSWINSZ , winsz )
215
216
216
217
# pty.openpty() passed.
217
218
You can’t perform that action at this time.
0 commit comments