Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions Lib/test/test_pty.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -82,9 +82,8 @@ def expectedFailureIfStdinIsTTY(fun):
pass
return fun

def expectedFailureOnBSD(fun):
PLATFORM = platform.system()
if PLATFORM.endswith("BSD") or PLATFORM == "Darwin":
def expectedFailureIfNotLinux(fun):
if platform.system() != "Linux":
return unittest.expectedFailure(fun)
return fun

Expand DownExpand Up@@ -314,7 +313,7 @@ def test_fork(self):

os.close(master_fd)

@expectedFailureOnBSD
@expectedFailureIfNotLinux
def test_master_read(self):
debug("Calling pty.openpty()")
master_fd, slave_fd = pty.openpty()
Expand Down
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
Change expectedFailureOnBSD() to expectedFailureIfNotLinux() in test_pty.py because test_master_read() should be expected to fail on every platform that is not Linux; that includes Solaris.