diff options
author | Christian Heimes <christian@python.org> | 2022-03-08 22:15:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-08 22:15:26 (GMT) |
commit | 95ba723c54ab52487bc9f986b651536cfae15b29 (patch) | |
tree | 000eaef6bd6a0cd21728bfb8dc2274f4506d7e8b /Lib | |
parent | 88b7d86a73da9388aa65c96401c2984c8c16f8db (diff) | |
download | cpython-95ba723c54ab52487bc9f986b651536cfae15b29.zip cpython-95ba723c54ab52487bc9f986b651536cfae15b29.tar.gz cpython-95ba723c54ab52487bc9f986b651536cfae15b29.tar.bz2 |
bpo-40280: Skip dysfunctional pipe tests on Emscripten (GH-31770)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_io.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index e9abd15..2d0ca87 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -426,6 +426,9 @@ class IOTest(unittest.TestCase): self.assertRaises(exc, fp.seek, 1, self.SEEK_CUR) self.assertRaises(exc, fp.seek, -1, self.SEEK_END) + @unittest.skipIf( + support.is_emscripten, "fstat() of a pipe fd is not supported" + ) def test_optional_abilities(self): # Test for OSError when optional APIs are not supported # The purpose of this test is to try fileno(), reading, writing and @@ -3971,6 +3974,9 @@ class MiscIOTest(unittest.TestCase): self.open(os_helper.TESTFN, mode) self.assertIn('invalid mode', str(cm.exception)) + @unittest.skipIf( + support.is_emscripten, "fstat() of a pipe fd is not supported" + ) def test_open_pipe_with_append(self): # bpo-27805: Ignore ESPIPE from lseek() in open(). r, w = os.pipe() @@ -4134,9 +4140,15 @@ class MiscIOTest(unittest.TestCase): with self.open(os_helper.TESTFN, **kwargs) as f: self.assertRaises(TypeError, pickle.dumps, f, protocol) + @unittest.skipIf( + support.is_emscripten, "fstat() of a pipe fd is not supported" + ) def test_nonblock_pipe_write_bigbuf(self): self._test_nonblock_pipe_write(16*1024) + @unittest.skipIf( + support.is_emscripten, "fstat() of a pipe fd is not supported" + ) def test_nonblock_pipe_write_smallbuf(self): self._test_nonblock_pipe_write(1024) |