X Tutup
Skip to content

Commit ed62c8e

Browse files
committed
mark failures
1 parent 183cebe commit ed62c8e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Lib/test/test_socket.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2394,6 +2394,8 @@ def __init__(self, *args, **kwargs):
23942394
super().__init__(*args, **kwargs)
23952395
self.interface = "vcan0"
23962396

2397+
# TODO: RUSTPYTHON - J1939 constants not fully implemented
2398+
@unittest.expectedFailure
23972399
@unittest.skipUnless(hasattr(socket, "CAN_J1939"),
23982400
'socket.CAN_J1939 required for this test.')
23992401
def testJ1939Constants(self):
@@ -2435,6 +2437,8 @@ def testCreateJ1939Socket(self):
24352437
with socket.socket(socket.PF_CAN, socket.SOCK_DGRAM, socket.CAN_J1939) as s:
24362438
pass
24372439

2440+
# TODO: RUSTPYTHON - AF_CAN J1939 address format not fully implemented
2441+
@unittest.expectedFailure
24382442
def testBind(self):
24392443
try:
24402444
with socket.socket(socket.PF_CAN, socket.SOCK_DGRAM, socket.CAN_J1939) as s:
@@ -4834,6 +4838,7 @@ class SendmsgUnixStreamTest(SendmsgStreamTests, SendrecvmsgUnixStreamTestBase):
48344838

48354839
@requireAttrs(socket.socket, "recvmsg")
48364840
@requireAttrs(socket, "AF_UNIX")
4841+
@unittest.skip("TODO: RUSTPYTHON; intermittent accept() EINVAL on Unix sockets")
48374842
class RecvmsgUnixStreamTest(RecvmsgTests, RecvmsgGenericStreamTests,
48384843
SendrecvmsgUnixStreamTestBase):
48394844
pass
@@ -4846,6 +4851,7 @@ class RecvmsgIntoUnixStreamTest(RecvmsgIntoTests, RecvmsgGenericStreamTests,
48464851

48474852
@requireAttrs(socket.socket, "sendmsg", "recvmsg")
48484853
@requireAttrs(socket, "AF_UNIX", "SOL_SOCKET", "SCM_RIGHTS")
4854+
@unittest.skip("TODO: RUSTPYTHON; intermittent accept() EINVAL on Unix sockets")
48494855
class RecvmsgSCMRightsStreamTest(SCMRightsTest, SendrecvmsgUnixStreamTestBase):
48504856
pass
48514857

@@ -6486,6 +6492,8 @@ def remoteProcessServer(cls, q):
64866492
s2.close()
64876493
s.close()
64886494

6495+
# TODO: RUSTPYTHON; multiprocessing.SemLock not implemented
6496+
@unittest.expectedFailure
64896497
def testShare(self):
64906498
# Transfer the listening server socket to another process
64916499
# and service it from there.
@@ -6862,6 +6870,8 @@ def create_alg(self, typ, name):
68626870

68636871
# bpo-31705: On kernel older than 4.5, sendto() failed with ENOKEY,
68646872
# at least on ppc64le architecture
6873+
# TODO: RUSTPYTHON - AF_ALG not fully implemented
6874+
@unittest.expectedFailure
68656875
@support.requires_linux_version(4, 5)
68666876
def test_sha256(self):
68676877
expected = bytes.fromhex("ba7816bf8f01cfea414140de5dae2223b00361a396"
@@ -6880,6 +6890,8 @@ def test_sha256(self):
68806890
op.send(b'')
68816891
self.assertEqual(op.recv(512), expected)
68826892

6893+
# TODO: RUSTPYTHON - AF_ALG not fully implemented
6894+
@unittest.expectedFailure
68836895
def test_hmac_sha1(self):
68846896
# gh-109396: In FIPS mode, Linux 6.5 requires a key
68856897
# of at least 112 bits. Use a key of 152 bits.
@@ -6895,6 +6907,8 @@ def test_hmac_sha1(self):
68956907

68966908
# Although it should work with 3.19 and newer the test blocks on
68976909
# Ubuntu 15.10 with Kernel 4.2.0-19.
6910+
# TODO: RUSTPYTHON - AF_ALG not fully implemented
6911+
@unittest.expectedFailure
68986912
@support.requires_linux_version(4, 3)
68996913
def test_aes_cbc(self):
69006914
key = bytes.fromhex('06a9214036b8a15b512e03d534120006')
@@ -6936,6 +6950,8 @@ def test_aes_cbc(self):
69366950
self.assertEqual(len(dec), msglen * multiplier)
69376951
self.assertEqual(dec, msg * multiplier)
69386952

6953+
# TODO: RUSTPYTHON - AF_ALG not fully implemented
6954+
@unittest.expectedFailure
69396955
@support.requires_linux_version(4, 9) # see gh-73510
69406956
def test_aead_aes_gcm(self):
69416957
kernel_version = support._get_kernel_version("Linux")
@@ -7005,6 +7021,8 @@ def test_aead_aes_gcm(self):
70057021
res = op.recv(len(msg) - taglen)
70067022
self.assertEqual(plain, res[assoclen:])
70077023

7024+
# TODO: RUSTPYTHON - AF_ALG not fully implemented
7025+
@unittest.expectedFailure
70087026
@support.requires_linux_version(4, 3) # see test_aes_cbc
70097027
def test_drbg_pr_sha256(self):
70107028
# deterministic random bit generator, prediction resistance, sha256

0 commit comments

Comments
 (0)
X Tutup