@@ -205,6 +205,9 @@ def test_invalid_socket(self):
205
205
self .assertRaises ((ValueError , OSError ),
206
206
signal .set_wakeup_fd , fd )
207
207
208
+ # Emscripten does not support fstat on pipes yet.
209
+ # https://github.com/emscripten-core/emscripten/issues/16414
210
+ @unittest .skipIf (support .is_emscripten , "Emscripten cannot fstat pipes." )
208
211
def test_set_wakeup_fd_result (self ):
209
212
r1 , w1 = os .pipe ()
210
213
self .addCleanup (os .close , r1 )
@@ -222,6 +225,7 @@ def test_set_wakeup_fd_result(self):
222
225
self .assertEqual (signal .set_wakeup_fd (- 1 ), w2 )
223
226
self .assertEqual (signal .set_wakeup_fd (- 1 ), - 1 )
224
227
228
+ @unittest .skipIf (support .is_emscripten , "Emscripten cannot fstat pipes." )
225
229
def test_set_wakeup_fd_socket_result (self ):
226
230
sock1 = socket .socket ()
227
231
self .addCleanup (sock1 .close )
@@ -241,6 +245,7 @@ def test_set_wakeup_fd_socket_result(self):
241
245
# On Windows, files are always blocking and Windows does not provide a
242
246
# function to test if a socket is in non-blocking mode.
243
247
@unittest .skipIf (sys .platform == "win32" , "tests specific to POSIX" )
248
+ @unittest .skipIf (support .is_emscripten , "Emscripten cannot fstat pipes." )
244
249
def test_set_wakeup_fd_blocking (self ):
245
250
rfd , wfd = os .pipe ()
246
251
self .addCleanup (os .close , rfd )
0 commit comments