Skip to content

Commit a5acdf3

Browse files
committed
Remove obsolete AF_ALG expected failures
The five LinuxKernelCryptoAPI tests passed twice in the hosted Ubuntu job for the AF_ALG accept fix. Remove their obsolete markers through update_lib, preserving all test bodies and platform guards. Assisted-by: OpenAI Codex:model version not exposed
1 parent 3cf0bde commit a5acdf3

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎Lib/test/test_socket.py‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7160,7 +7160,6 @@ def create_alg(self, typ, name):
71607160

71617161
# bpo-31705: On kernel older than 4.5, sendto() failed with ENOKEY,
71627162
# at least on ppc64le architecture
7163-
@unittest.expectedFailure # TODO: RUSTPYTHON; - AF_ALG not fully implemented
71647163
@support.requires_linux_version(4, 5)
71657164
def test_sha256(self):
71667165
expected = bytes.fromhex("ba7816bf8f01cfea414140de5dae2223b00361a396"
@@ -7179,7 +7178,6 @@ def test_sha256(self):
71797178
op.send(b'')
71807179
self.assertEqual(op.recv(512), expected)
71817180

7182-
@unittest.expectedFailure # TODO: RUSTPYTHON; - AF_ALG not fully implemented
71837181
def test_hmac_sha1(self):
71847182
# gh-109396: In FIPS mode, Linux 6.5 requires a key
71857183
# of at least 112 bits. Use a key of 152 bits.
@@ -7195,7 +7193,6 @@ def test_hmac_sha1(self):
71957193

71967194
# Although it should work with 3.19 and newer the test blocks on
71977195
# Ubuntu 15.10 with Kernel 4.2.0-19.
7198-
@unittest.expectedFailure # TODO: RUSTPYTHON; - AF_ALG not fully implemented
71997196
@support.requires_linux_version(4, 3)
72007197
def test_aes_cbc(self):
72017198
key = bytes.fromhex('06a9214036b8a15b512e03d534120006')
@@ -7237,7 +7234,6 @@ def test_aes_cbc(self):
72377234
self.assertEqual(len(dec), msglen * multiplier)
72387235
self.assertEqual(dec, msg * multiplier)
72397236

7240-
@unittest.expectedFailure # TODO: RUSTPYTHON; - AF_ALG not fully implemented
72417237
@support.requires_linux_version(4, 9) # see gh-73510
72427238
def test_aead_aes_gcm(self):
72437239
kernel_version = support._get_kernel_version("Linux")
@@ -7307,7 +7303,6 @@ def test_aead_aes_gcm(self):
73077303
res = op.recv(len(msg) - taglen)
73087304
self.assertEqual(plain, res[assoclen:])
73097305

7310-
@unittest.expectedFailure # TODO: RUSTPYTHON; - AF_ALG not fully implemented
73117306
@support.requires_linux_version(4, 3) # see test_aes_cbc
73127307
def test_drbg_pr_sha256(self):
73137308
# deterministic random bit generator, prediction resistance, sha256

0 commit comments

Comments
 (0)