Skip to content

Commit dc8b528

Browse files
committed
Disable test for non-standard platforms
- the specific test may fail under non-Linux *nix systems due to different pipe implementations - fixes #768
1 parent d1dcaa6 commit dc8b528

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyfakefs/tests/fake_os_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2812,6 +2812,10 @@ def test_write_to_pipe(self):
28122812
self.os.close(read_fd)
28132813
self.os.close(write_fd)
28142814

2815+
@unittest.skipIf(
2816+
sys.platform not in ("win32", "darwin", "linux"),
2817+
"Pipe implementation may differ on other platforms",
2818+
)
28152819
def test_write_to_read_fd(self):
28162820
read_fd, write_fd = self.os.pipe()
28172821
self.assert_raises_os_error(errno.EBADF, self.os.write, read_fd, b"test")

0 commit comments

Comments
 (0)