From ed62c8ef58cbac2ab037f206203bfbbc907ae8cf Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Mon, 29 Dec 2025 11:27:00 +0900 Subject: [PATCH] mark failures --- Lib/test/test_socket.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 08676cf33..87479171b 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -2394,6 +2394,8 @@ class J1939Test(unittest.TestCase): super().__init__(*args, **kwargs) self.interface = "vcan0" + # TODO: RUSTPYTHON - J1939 constants not fully implemented + @unittest.expectedFailure @unittest.skipUnless(hasattr(socket, "CAN_J1939"), 'socket.CAN_J1939 required for this test.') def testJ1939Constants(self): @@ -2435,6 +2437,8 @@ class J1939Test(unittest.TestCase): with socket.socket(socket.PF_CAN, socket.SOCK_DGRAM, socket.CAN_J1939) as s: pass + # TODO: RUSTPYTHON - AF_CAN J1939 address format not fully implemented + @unittest.expectedFailure def testBind(self): try: with socket.socket(socket.PF_CAN, socket.SOCK_DGRAM, socket.CAN_J1939) as s: @@ -4834,6 +4838,7 @@ class SendmsgUnixStreamTest(SendmsgStreamTests, SendrecvmsgUnixStreamTestBase): @requireAttrs(socket.socket, "recvmsg") @requireAttrs(socket, "AF_UNIX") +@unittest.skip("TODO: RUSTPYTHON; intermittent accept() EINVAL on Unix sockets") class RecvmsgUnixStreamTest(RecvmsgTests, RecvmsgGenericStreamTests, SendrecvmsgUnixStreamTestBase): pass @@ -4846,6 +4851,7 @@ class RecvmsgIntoUnixStreamTest(RecvmsgIntoTests, RecvmsgGenericStreamTests, @requireAttrs(socket.socket, "sendmsg", "recvmsg") @requireAttrs(socket, "AF_UNIX", "SOL_SOCKET", "SCM_RIGHTS") +@unittest.skip("TODO: RUSTPYTHON; intermittent accept() EINVAL on Unix sockets") class RecvmsgSCMRightsStreamTest(SCMRightsTest, SendrecvmsgUnixStreamTestBase): pass @@ -6486,6 +6492,8 @@ class TestSocketSharing(SocketTCPTest): s2.close() s.close() + # TODO: RUSTPYTHON; multiprocessing.SemLock not implemented + @unittest.expectedFailure def testShare(self): # Transfer the listening server socket to another process # and service it from there. @@ -6862,6 +6870,8 @@ class LinuxKernelCryptoAPI(unittest.TestCase): # bpo-31705: On kernel older than 4.5, sendto() failed with ENOKEY, # at least on ppc64le architecture + # TODO: RUSTPYTHON - AF_ALG not fully implemented + @unittest.expectedFailure @support.requires_linux_version(4, 5) def test_sha256(self): expected = bytes.fromhex("ba7816bf8f01cfea414140de5dae2223b00361a396" @@ -6880,6 +6890,8 @@ class LinuxKernelCryptoAPI(unittest.TestCase): op.send(b'') self.assertEqual(op.recv(512), expected) + # TODO: RUSTPYTHON - AF_ALG not fully implemented + @unittest.expectedFailure def test_hmac_sha1(self): # gh-109396: In FIPS mode, Linux 6.5 requires a key # of at least 112 bits. Use a key of 152 bits. @@ -6895,6 +6907,8 @@ class LinuxKernelCryptoAPI(unittest.TestCase): # Although it should work with 3.19 and newer the test blocks on # Ubuntu 15.10 with Kernel 4.2.0-19. + # TODO: RUSTPYTHON - AF_ALG not fully implemented + @unittest.expectedFailure @support.requires_linux_version(4, 3) def test_aes_cbc(self): key = bytes.fromhex('06a9214036b8a15b512e03d534120006') @@ -6936,6 +6950,8 @@ class LinuxKernelCryptoAPI(unittest.TestCase): self.assertEqual(len(dec), msglen * multiplier) self.assertEqual(dec, msg * multiplier) + # TODO: RUSTPYTHON - AF_ALG not fully implemented + @unittest.expectedFailure @support.requires_linux_version(4, 9) # see gh-73510 def test_aead_aes_gcm(self): kernel_version = support._get_kernel_version("Linux") @@ -7005,6 +7021,8 @@ class LinuxKernelCryptoAPI(unittest.TestCase): res = op.recv(len(msg) - taglen) self.assertEqual(plain, res[assoclen:]) + # TODO: RUSTPYTHON - AF_ALG not fully implemented + @unittest.expectedFailure @support.requires_linux_version(4, 3) # see test_aes_cbc def test_drbg_pr_sha256(self): # deterministic random bit generator, prediction resistance, sha256