bpo-40280: Skip dysfunctional pipe tests on Emscripten (GH-31770) · python/cpython@e2eeb77
@@ -426,6 +426,9 @@ def test_invalid_operations(self):
426426self.assertRaises(exc, fp.seek, 1, self.SEEK_CUR)
427427self.assertRaises(exc, fp.seek, -1, self.SEEK_END)
428428429+@unittest.skipIf(
430+ support.is_emscripten, "fstat() of a pipe fd is not supported"
431+ )
429432def test_optional_abilities(self):
430433# Test for OSError when optional APIs are not supported
431434# The purpose of this test is to try fileno(), reading, writing and
@@ -3971,6 +3974,9 @@ def test_removed_u_mode(self):
39713974self.open(os_helper.TESTFN, mode)
39723975self.assertIn('invalid mode', str(cm.exception))
397339763977+@unittest.skipIf(
3978+ support.is_emscripten, "fstat() of a pipe fd is not supported"
3979+ )
39743980def test_open_pipe_with_append(self):
39753981# bpo-27805: Ignore ESPIPE from lseek() in open().
39763982r, w = os.pipe()
@@ -4134,9 +4140,15 @@ def test_pickling(self):
41344140with self.open(os_helper.TESTFN, **kwargs) as f:
41354141self.assertRaises(TypeError, pickle.dumps, f, protocol)
413641424143+@unittest.skipIf(
4144+ support.is_emscripten, "fstat() of a pipe fd is not supported"
4145+ )
41374146def test_nonblock_pipe_write_bigbuf(self):
41384147self._test_nonblock_pipe_write(16*1024)
413941484149+@unittest.skipIf(
4150+ support.is_emscripten, "fstat() of a pipe fd is not supported"
4151+ )
41404152def test_nonblock_pipe_write_smallbuf(self):
41414153self._test_nonblock_pipe_write(1024)
41424154