Skip to content

Commit a8723e7

Browse files
committed
In Lib/test/test_pty.py, add a check for "Darwin" in expectedFailureOnBSD
Signed-off-by: Soumendra Ganguly <[email protected]>
1 parent 4bb22ca commit a8723e7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Lib/test/test_pty.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ def expectedFailureIfStdinIsTTY(fun):
7979
return fun
8080

8181
def expectedFailureOnBSD(fun):
82-
if platform.system().endswith("BSD"):
82+
PLATFORM = platform.system()
83+
if PLATFORM.endswith("BSD") or PLATFORM == "Darwin":
8384
return unittest.expectedFailure(fun)
8485
return fun
8586

@@ -209,9 +210,9 @@ def test_openpty(self):
209210
os.close(master_fd)
210211

211212
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)
215216

216217
# pty.openpty() passed.
217218

0 commit comments

Comments
 (0)