diff options
author | mrbean-bremen <hansemrbean@googlemail.com> | 2022-12-30 20:14:19 +0100 |
---|---|---|
committer | mrbean-bremen <hansemrbean@googlemail.com> | 2022-12-30 20:14:19 +0100 |
commit | dc8b5288c3c63f88afa5aec62bc0996f711774b8 (patch) | |
tree | be92ee4514f791c0c4d07681f03facf1bf060d41 /pyfakefs | |
parent | d1dcaa62a435ad10f337839c22f9e242dd93f815 (diff) | |
download | pyfakefs-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.py | 4 |
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") |