Skip to content

Commit 92a2c07

Browse files
miss-islingtonvstinner
authored andcommitted
Skip test_socket.test_sha256() on linux < 4.5 (GH-4643) (#4645)
bpo-31705. (cherry picked from commit 86afc1f)
1 parent dedcbee commit 92a2c07

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Lib/test/test_socket.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5419,6 +5419,9 @@ def create_alg(self, typ, name):
54195419
else:
54205420
return sock
54215421

5422+
# bpo-31705: On kernel older than 4.5, sendto() failed with ENOKEY,
5423+
# at least on ppc64le architecture
5424+
@support.requires_linux_version(4, 5)
54225425
def test_sha256(self):
54235426
expected = bytes.fromhex("ba7816bf8f01cfea414140de5dae2223b00361a396"
54245427
"177a9cb410ff61f20015ad")
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Skip test_socket.test_sha256() on Linux kernel older than 4.5. The test
2+
fails with ENOKEY on kernel 3.10 (on ppc64le). A fix was merged into the
3+
kernel 4.5.

0 commit comments

Comments
 (0)