Skip to content

Commit 60e65f5

Browse files
committed
Add some extra test skips
1 parent d764db8 commit 60e65f5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Lib/test/test_fcntl.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import sys
99
import unittest
1010
from test.support import (
11-
cpython_only, get_pagesize, is_apple, requires_subprocess, verbose
11+
cpython_only, get_pagesize, is_apple, requires_subprocess, verbose, is_emscripten
1212
)
1313
from test.support.import_helper import import_module
1414
from test.support.os_helper import TESTFN, unlink, make_bad_fd
@@ -211,6 +211,7 @@ def test_fcntl_f_getpath(self):
211211
@unittest.skipUnless(
212212
hasattr(fcntl, "F_SETPIPE_SZ") and hasattr(fcntl, "F_GETPIPE_SZ"),
213213
"F_SETPIPE_SZ and F_GETPIPE_SZ are not available on all platforms.")
214+
@unittest.skipIf(is_emscripten, "Emscripten pipefs doesn't support these")
214215
def test_fcntl_f_pipesize(self):
215216
test_pipe_r, test_pipe_w = os.pipe()
216217
try:
@@ -265,12 +266,14 @@ def _check_fcntl_not_mutate_len(self, nbytes=None):
265266
@unittest.skipUnless(
266267
hasattr(fcntl, "F_SETOWN_EX") and hasattr(fcntl, "F_GETOWN_EX"),
267268
"requires F_SETOWN_EX and F_GETOWN_EX")
269+
@unittest.skipIf(is_emscripten, "Emscripten doesn't actually support these")
268270
def test_fcntl_small_buffer(self):
269271
self._check_fcntl_not_mutate_len()
270272

271273
@unittest.skipUnless(
272274
hasattr(fcntl, "F_SETOWN_EX") and hasattr(fcntl, "F_GETOWN_EX"),
273275
"requires F_SETOWN_EX and F_GETOWN_EX")
276+
@unittest.skipIf(is_emscripten, "Emscripten doesn't actually support these")
274277
def test_fcntl_large_buffer(self):
275278
self._check_fcntl_not_mutate_len(2024)
276279

Lib/test/test_signal.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ def test_invalid_socket(self):
254254
signal.set_wakeup_fd, fd)
255255

256256
@unittest.skipUnless(hasattr(os, "pipe"), "requires os.pipe()")
257+
@unittest.skipIf(support.is_emscripten, "Doesn't work")
257258
def test_set_wakeup_fd_result(self):
258259
r1, w1 = os.pipe()
259260
self.addCleanup(os.close, r1)
@@ -292,6 +293,7 @@ def test_set_wakeup_fd_socket_result(self):
292293
# function to test if a socket is in non-blocking mode.
293294
@unittest.skipIf(sys.platform == "win32", "tests specific to POSIX")
294295
@unittest.skipUnless(hasattr(os, "pipe"), "requires os.pipe()")
296+
@unittest.skipIf(support.is_emscripten, "Doesn't work")
295297
def test_set_wakeup_fd_blocking(self):
296298
rfd, wfd = os.pipe()
297299
self.addCleanup(os.close, rfd)

0 commit comments

Comments
 (0)