diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2017-11-30 13:43:43 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2017-11-30 13:43:43 (GMT) |
commit | 92a2c07b71aefc01f84ba4b0eda8e2a45c1a6b65 (patch) | |
tree | ef552e622e07dcaf8d8bab6a3133a79e2ece77c9 | |
parent | dedcbee04cd52790027ecfb46cb3aa33efebdc84 (diff) | |
download | cpython-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)
-rw-r--r-- | Lib/test/test_socket.py | 3 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Tests/2017-11-30-12-27-10.bpo-31705.yULW7O.rst | 3 |
2 files changed, 6 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") 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. |