summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-11-30 12:58:43 (GMT)
committerGitHub <noreply@github.com>2017-11-30 12:58:43 (GMT)
commit86afc1f2a7fb3afe00779c6426bc141bc795d9a3 (patch)
treea08936f281cd48078f6372d1f81579b84108e1c9
parent5e3806f8cfd84722fc55d4299dc018ad9b0f8401 (diff)
downloadcpython-86afc1f2a7fb3afe00779c6426bc141bc795d9a3.zip
cpython-86afc1f2a7fb3afe00779c6426bc141bc795d9a3.tar.gz
cpython-86afc1f2a7fb3afe00779c6426bc141bc795d9a3.tar.bz2
Skip test_socket.test_sha256() on linux < 4.5 (#4643)
bpo-31705.
-rw-r--r--Lib/test/test_socket.py3
-rw-r--r--Misc/NEWS.d/next/Tests/2017-11-30-12-27-10.bpo-31705.yULW7O.rst3
2 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index e70a8f6..b97a768 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -5573,6 +5573,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")
diff --git a/Misc/NEWS.d/next/Tests/2017-11-30-12-27-10.bpo-31705.yULW7O.rst b/Misc/NEWS.d/next/Tests/2017-11-30-12-27-10.bpo-31705.yULW7O.rst
new file mode 100644
index 0000000..aa2d30c
--- /dev/null
+++ b/Misc/NEWS.d/next/Tests/2017-11-30-12-27-10.bpo-31705.yULW7O.rst
@@ -0,0 +1,3 @@
+Skip test_socket.test_sha256() on Linux kernel older than 4.5. The test
+fails with ENOKEY on kernel 3.10 (on ppc64le). A fix was merged into the
+kernel 4.5.