summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2017-11-30 13:43:43 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2017-11-30 13:43:43 (GMT)
commit92a2c07b71aefc01f84ba4b0eda8e2a45c1a6b65 (patch)
treeef552e622e07dcaf8d8bab6a3133a79e2ece77c9 /Lib
parentdedcbee04cd52790027ecfb46cb3aa33efebdc84 (diff)
downloadcpython-92a2c07b71aefc01f84ba4b0eda8e2a45c1a6b65.zip
cpython-92a2c07b71aefc01f84ba4b0eda8e2a45c1a6b65.tar.gz
cpython-92a2c07b71aefc01f84ba4b0eda8e2a45c1a6b65.tar.bz2
Skip test_socket.test_sha256() on linux < 4.5 (GH-4643) (#4645)
bpo-31705. (cherry picked from commit 86afc1f2a7fb3afe00779c6426bc141bc795d9a3)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_socket.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index 034a3da..a79ebfe 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -5419,6 +5419,9 @@ class LinuxKernelCryptoAPI(unittest.TestCase):
else:
return sock
+ # bpo-31705: On kernel older than 4.5, sendto() failed with ENOKEY,
+ # at least on ppc64le architecture
+ @support.requires_linux_version(4, 5)
def test_sha256(self):
expected = bytes.fromhex("ba7816bf8f01cfea414140de5dae2223b00361a396"
"177a9cb410ff61f20015ad")