Skip to content

Commit b43b9b4

Browse files
authored
bpo-40280: Skip wakeup_fd pipe tests on Emscripten (GH-31909)
1 parent ea786a8 commit b43b9b4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Lib/test/test_signal.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@ def test_invalid_socket(self):
205205
self.assertRaises((ValueError, OSError),
206206
signal.set_wakeup_fd, fd)
207207

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.")
208211
def test_set_wakeup_fd_result(self):
209212
r1, w1 = os.pipe()
210213
self.addCleanup(os.close, r1)
@@ -222,6 +225,7 @@ def test_set_wakeup_fd_result(self):
222225
self.assertEqual(signal.set_wakeup_fd(-1), w2)
223226
self.assertEqual(signal.set_wakeup_fd(-1), -1)
224227

228+
@unittest.skipIf(support.is_emscripten, "Emscripten cannot fstat pipes.")
225229
def test_set_wakeup_fd_socket_result(self):
226230
sock1 = socket.socket()
227231
self.addCleanup(sock1.close)
@@ -241,6 +245,7 @@ def test_set_wakeup_fd_socket_result(self):
241245
# On Windows, files are always blocking and Windows does not provide a
242246
# function to test if a socket is in non-blocking mode.
243247
@unittest.skipIf(sys.platform == "win32", "tests specific to POSIX")
248+
@unittest.skipIf(support.is_emscripten, "Emscripten cannot fstat pipes.")
244249
def test_set_wakeup_fd_blocking(self):
245250
rfd, wfd = os.pipe()
246251
self.addCleanup(os.close, rfd)

0 commit comments

Comments
 (0)