aboutsummaryrefslogtreecommitdiff
path: root/pyfakefs
diff options
context:
space:
mode:
authormrbean-bremen <hansemrbean@googlemail.com>2022-12-30 20:14:19 +0100
committermrbean-bremen <hansemrbean@googlemail.com>2022-12-30 20:14:19 +0100
commitdc8b5288c3c63f88afa5aec62bc0996f711774b8 (patch)
treebe92ee4514f791c0c4d07681f03facf1bf060d41 /pyfakefs
parentd1dcaa62a435ad10f337839c22f9e242dd93f815 (diff)
downloadpyfakefs-dc8b5288c3c63f88afa5aec62bc0996f711774b8.tar.gz
Disable test for non-standard platforms
- the specific test may fail under non-Linux *nix systems due to different pipe implementations - fixes #768
Diffstat (limited to 'pyfakefs')
-rw-r--r--pyfakefs/tests/fake_os_test.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pyfakefs/tests/fake_os_test.py b/pyfakefs/tests/fake_os_test.py
index af00a6a..d405b49 100644
--- a/pyfakefs/tests/fake_os_test.py
+++ b/pyfakefs/tests/fake_os_test.py
@@ -2812,6 +2812,10 @@ class FakeOsModuleTest(FakeOsModuleTestBase):
self.os.close(read_fd)
self.os.close(write_fd)
+ @unittest.skipIf(
+ sys.platform not in ("win32", "darwin", "linux"),
+ "Pipe implementation may differ on other platforms",
+ )
def test_write_to_read_fd(self):
read_fd, write_fd = self.os.pipe()
self.assert_raises_os_error(errno.EBADF, self.os.write, read_fd, b"test")