We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bb22ca commit a8723e7Copy full SHA for a8723e7
Lib/test/test_pty.py
@@ -79,7 +79,8 @@ def expectedFailureIfStdinIsTTY(fun):
79
return fun
80
81
def expectedFailureOnBSD(fun):
82
- if platform.system().endswith("BSD"):
+ PLATFORM = platform.system()
83
+ if PLATFORM.endswith("BSD") or PLATFORM == "Darwin":
84
return unittest.expectedFailure(fun)
85
86
@@ -209,9 +210,9 @@ def test_openpty(self):
209
210
os.close(master_fd)
211
212
if winsz:
- winsz = struct.pack("HHHH", current_stdin_winsz.lines,
213
- current_stdin_winsz.columns, 0, 0)
214
- fcntl.ioctl(pty.STDIN_FILENO, TIOCSWINSZ, winsz)
+ winsz = struct.pack("HHHH", current_stdin_winsz.lines,
+ current_stdin_winsz.columns, 0, 0)
215
+ fcntl.ioctl(pty.STDIN_FILENO, TIOCSWINSZ, winsz)
216
217
# pty.openpty() passed.
218
0 commit comments