|
8 | 8 | import sys |
9 | 9 | import unittest |
10 | 10 | 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 |
12 | 12 | ) |
13 | 13 | from test.support.import_helper import import_module |
14 | 14 | from test.support.os_helper import TESTFN, unlink, make_bad_fd |
@@ -211,6 +211,7 @@ def test_fcntl_f_getpath(self): |
211 | 211 | @unittest.skipUnless( |
212 | 212 | hasattr(fcntl, "F_SETPIPE_SZ") and hasattr(fcntl, "F_GETPIPE_SZ"), |
213 | 213 | "F_SETPIPE_SZ and F_GETPIPE_SZ are not available on all platforms.") |
| 214 | + @unittest.skipIf(is_emscripten, "Emscripten pipefs doesn't support these") |
214 | 215 | def test_fcntl_f_pipesize(self): |
215 | 216 | test_pipe_r, test_pipe_w = os.pipe() |
216 | 217 | try: |
@@ -265,12 +266,14 @@ def _check_fcntl_not_mutate_len(self, nbytes=None): |
265 | 266 | @unittest.skipUnless( |
266 | 267 | hasattr(fcntl, "F_SETOWN_EX") and hasattr(fcntl, "F_GETOWN_EX"), |
267 | 268 | "requires F_SETOWN_EX and F_GETOWN_EX") |
| 269 | + @unittest.skipIf(is_emscripten, "Emscripten doesn't actually support these") |
268 | 270 | def test_fcntl_small_buffer(self): |
269 | 271 | self._check_fcntl_not_mutate_len() |
270 | 272 |
|
271 | 273 | @unittest.skipUnless( |
272 | 274 | hasattr(fcntl, "F_SETOWN_EX") and hasattr(fcntl, "F_GETOWN_EX"), |
273 | 275 | "requires F_SETOWN_EX and F_GETOWN_EX") |
| 276 | + @unittest.skipIf(is_emscripten, "Emscripten doesn't actually support these") |
274 | 277 | def test_fcntl_large_buffer(self): |
275 | 278 | self._check_fcntl_not_mutate_len(2024) |
276 | 279 |
|
|
0 commit comments