Skip to content
Prev Previous commit
Next Next commit
In Lib/test/test_pty.py, add a check for "Darwin" in expectedFailureO…
…nBSD

Signed-off-by: Soumendra Ganguly <soumendraganguly@gmail.com>
  • Loading branch information
8vasu committed Oct 25, 2020
commit a8723e7f03ec12b8b57de65eb94ed176be4059f2
9 changes: 5 additions & 4 deletions Lib/test/test_pty.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ def expectedFailureIfStdinIsTTY(fun):
return fun

def expectedFailureOnBSD(fun):
if platform.system().endswith("BSD"):
PLATFORM = platform.system()
if PLATFORM.endswith("BSD") or PLATFORM == "Darwin":
return unittest.expectedFailure(fun)
Comment thread
ethanfurman marked this conversation as resolved.
Outdated
return fun

Expand Down Expand Up @@ -209,9 +210,9 @@ def test_openpty(self):
os.close(master_fd)

if winsz:
winsz = struct.pack("HHHH", current_stdin_winsz.lines,
current_stdin_winsz.columns, 0, 0)
fcntl.ioctl(pty.STDIN_FILENO, TIOCSWINSZ, winsz)
winsz = struct.pack("HHHH", current_stdin_winsz.lines,
current_stdin_winsz.columns, 0, 0)
fcntl.ioctl(pty.STDIN_FILENO, TIOCSWINSZ, winsz)

# pty.openpty() passed.

Expand Down