Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add some extra test skips
  • Loading branch information
hoodmane committed Jul 21, 2025
commit 60e65f5292570eaf9fb9cb365436d661bbb39c03
5 changes: 4 additions & 1 deletion Lib/test/test_fcntl.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import sys
import unittest
from test.support import (
cpython_only, get_pagesize, is_apple, requires_subprocess, verbose
cpython_only, get_pagesize, is_apple, requires_subprocess, verbose, is_emscripten
)
from test.support.import_helper import import_module
from test.support.os_helper import TESTFN, unlink, make_bad_fd
Expand Down Expand Up @@ -211,6 +211,7 @@ def test_fcntl_f_getpath(self):
@unittest.skipUnless(
hasattr(fcntl, "F_SETPIPE_SZ") and hasattr(fcntl, "F_GETPIPE_SZ"),
"F_SETPIPE_SZ and F_GETPIPE_SZ are not available on all platforms.")
@unittest.skipIf(is_emscripten, "Emscripten pipefs doesn't support these")
def test_fcntl_f_pipesize(self):
test_pipe_r, test_pipe_w = os.pipe()
try:
Expand Down Expand Up @@ -265,12 +266,14 @@ def _check_fcntl_not_mutate_len(self, nbytes=None):
@unittest.skipUnless(
hasattr(fcntl, "F_SETOWN_EX") and hasattr(fcntl, "F_GETOWN_EX"),
"requires F_SETOWN_EX and F_GETOWN_EX")
@unittest.skipIf(is_emscripten, "Emscripten doesn't actually support these")
def test_fcntl_small_buffer(self):
self._check_fcntl_not_mutate_len()

@unittest.skipUnless(
hasattr(fcntl, "F_SETOWN_EX") and hasattr(fcntl, "F_GETOWN_EX"),
"requires F_SETOWN_EX and F_GETOWN_EX")
@unittest.skipIf(is_emscripten, "Emscripten doesn't actually support these")
def test_fcntl_large_buffer(self):
self._check_fcntl_not_mutate_len(2024)

Expand Down
2 changes: 2 additions & 0 deletions Lib/test/test_signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ def test_invalid_socket(self):
signal.set_wakeup_fd, fd)

@unittest.skipUnless(hasattr(os, "pipe"), "requires os.pipe()")
@unittest.skipIf(support.is_emscripten, "Doesn't work")
def test_set_wakeup_fd_result(self):
r1, w1 = os.pipe()
self.addCleanup(os.close, r1)
Expand Down Expand Up @@ -292,6 +293,7 @@ def test_set_wakeup_fd_socket_result(self):
# function to test if a socket is in non-blocking mode.
@unittest.skipIf(sys.platform == "win32", "tests specific to POSIX")
@unittest.skipUnless(hasattr(os, "pipe"), "requires os.pipe()")
@unittest.skipIf(support.is_emscripten, "Doesn't work")
def test_set_wakeup_fd_blocking(self):
rfd, wfd = os.pipe()
self.addCleanup(os.close, rfd)
Expand Down
Loading