@@ -445,9 +445,6 @@ def test_invalid_operations(self):
445445 self .assertRaises (exc , fp .seek , 1 , self .SEEK_CUR )
446446 self .assertRaises (exc , fp .seek , - 1 , self .SEEK_END )
447447
448- @unittest .skipIf (
449- support .is_emscripten , "fstat() of a pipe fd is not supported"
450- )
451448 @unittest .skipUnless (hasattr (os , "pipe" ), "requires os.pipe()" )
452449 def test_optional_abilities (self ):
453450 # Test for OSError when optional APIs are not supported
@@ -502,6 +499,8 @@ class UnseekableWriter(self.MockUnseekableIO):
502499 (self .BytesIO , "rws" ), (self .StringIO , "rws" ),
503500 )
504501 for [test , abilities ] in tests :
502+ if test == pipe_writer and not threading_helper .can_start_thread :
503+ continue
505504 with self .subTest (test ), test () as obj :
506505 readable = "r" in abilities
507506 self .assertEqual (obj .readable (), readable )
@@ -3928,7 +3927,6 @@ def test_issue35928(self):
39283927 self .assertEqual (res + f .readline (), 'foo\n bar\n ' )
39293928
39303929 @unittest .skipUnless (hasattr (os , "pipe" ), "requires os.pipe()" )
3931- @unittest .skipIf (support .is_emscripten , "Fixed in next Emscripten release after 4.0.1" )
39323930 def test_read_non_blocking (self ):
39333931 import os
39343932 r , w = os .pipe ()
@@ -4243,9 +4241,6 @@ def test_removed_u_mode(self):
42434241 self .open (os_helper .TESTFN , mode )
42444242 self .assertIn ('invalid mode' , str (cm .exception ))
42454243
4246- @unittest .skipIf (
4247- support .is_emscripten , "fstat() of a pipe fd is not supported"
4248- )
42494244 @unittest .skipUnless (hasattr (os , "pipe" ), "requires os.pipe()" )
42504245 def test_open_pipe_with_append (self ):
42514246 # bpo-27805: Ignore ESPIPE from lseek() in open().
@@ -4414,15 +4409,11 @@ def test_pickling(self):
44144409 with self .assertRaisesRegex (TypeError , msg ):
44154410 pickle .dumps (f , protocol )
44164411
4417- @unittest .skipIf (
4418- support .is_emscripten , "fstat() of a pipe fd is not supported"
4419- )
4412+ @unittest .skipIf (support .is_emscripten , "Corrupts memory" )
44204413 def test_nonblock_pipe_write_bigbuf (self ):
44214414 self ._test_nonblock_pipe_write (16 * 1024 )
44224415
4423- @unittest .skipIf (
4424- support .is_emscripten , "fstat() of a pipe fd is not supported"
4425- )
4416+ @unittest .skipIf (support .is_emscripten , "Corrupts memory" )
44264417 def test_nonblock_pipe_write_smallbuf (self ):
44274418 self ._test_nonblock_pipe_write (1024 )
44284419
0 commit comments