mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
gh-127146: Update test skips for Emscripten 4.0.2 (#129474)
Updates test skips to reflect capabilities of Emscripten 4.0.2.
This commit is contained in:
parent
23cda58348
commit
cf288e3c25
5 changed files with 63 additions and 70 deletions
|
@ -253,7 +253,6 @@ class WakeupFDTests(unittest.TestCase):
|
|||
self.assertRaises((ValueError, OSError),
|
||||
signal.set_wakeup_fd, fd)
|
||||
|
||||
@unittest.skipIf(support.is_emscripten, "Fixed in next Emscripten release after 4.0.1")
|
||||
@unittest.skipUnless(hasattr(os, "pipe"), "requires os.pipe()")
|
||||
def test_set_wakeup_fd_result(self):
|
||||
r1, w1 = os.pipe()
|
||||
|
@ -272,7 +271,6 @@ class WakeupFDTests(unittest.TestCase):
|
|||
self.assertEqual(signal.set_wakeup_fd(-1), w2)
|
||||
self.assertEqual(signal.set_wakeup_fd(-1), -1)
|
||||
|
||||
@unittest.skipIf(support.is_emscripten, "Fixed in next Emscripten release after 4.0.1")
|
||||
@unittest.skipUnless(support.has_socket_support, "needs working sockets.")
|
||||
def test_set_wakeup_fd_socket_result(self):
|
||||
sock1 = socket.socket()
|
||||
|
@ -293,7 +291,6 @@ class WakeupFDTests(unittest.TestCase):
|
|||
# On Windows, files are always blocking and Windows does not provide a
|
||||
# function to test if a socket is in non-blocking mode.
|
||||
@unittest.skipIf(sys.platform == "win32", "tests specific to POSIX")
|
||||
@unittest.skipIf(support.is_emscripten, "Fixed in next Emscripten release after 4.0.1")
|
||||
@unittest.skipUnless(hasattr(os, "pipe"), "requires os.pipe()")
|
||||
def test_set_wakeup_fd_blocking(self):
|
||||
rfd, wfd = os.pipe()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue