Skip test_aead_aes_gcm during rpmbuild

This commit is contained in:
Charalampos Stratakis 2017-01-19 20:56:23 +01:00
parent 79728f702e
commit ae3f901913
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index 8992a01..74170f4 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -5458,6 +5458,7 @@ class LinuxKernelCryptoAPI(unittest.TestCase):
self.assertEqual(dec, msg * multiplier)
@support.requires_linux_version(4, 3) # see test_aes_cbc
+ @unittest.skip('Failure on Kernel 4.9+')
def test_aead_aes_gcm(self):
key = bytes.fromhex('c939cc13397c1d37de6ae0e1cb7c423c')
iv = bytes.fromhex('b3d8cc017cbb89b39e0f67e2')

View File

@ -417,6 +417,12 @@ Patch253: 00253-fix-HAVE_LONG_LONG-compatibility.patch
# Fixed upstream: https://bugs.python.org/issue29085 # Fixed upstream: https://bugs.python.org/issue29085
Patch254: 00254-make-Random.seed-actually-use-OS-randomness.patch Patch254: 00254-make-Random.seed-actually-use-OS-randomness.patch
# 00258 #
# Kernel 4.9 introduced some changes to its crypto API
# making test_aead_aes_gcm fail, so skipping the test for now
# Reported upstream: http://bugs.python.org/issue29324
Patch258: 00258-fix-test_aead_aes_gcm.patch
# (New patches go here ^^^) # (New patches go here ^^^)
# #
# When adding new patches to "python" and "python3" in Fedora, EL, etc., # When adding new patches to "python" and "python3" in Fedora, EL, etc.,
@ -659,6 +665,7 @@ sed -r -i s/'_PIP_VERSION = "[0-9.]+"'/'_PIP_VERSION = "%{pip_version}"'/ Lib/en
%patch250 -p1 %patch250 -p1
%patch253 -p1 %patch253 -p1
%patch254 -p1 %patch254 -p1
%patch258 -p1
# Currently (2010-01-15), http://docs.python.org/library is for 2.6, and there # Currently (2010-01-15), http://docs.python.org/library is for 2.6, and there
# are many differences between 2.6 and the Python 3 library. # are many differences between 2.6 and the Python 3 library.
@ -1579,6 +1586,7 @@ rm -fr %{buildroot}
%changelog %changelog
* Mon Jan 16 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-7 * Mon Jan 16 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-7
- Fix error check, so that Random.seed actually uses OS randomness (rhbz#1412275) - Fix error check, so that Random.seed actually uses OS randomness (rhbz#1412275)
- Skip test_aead_aes_gcm during rpmbuild
* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 3.6.0-6 * Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 3.6.0-6
- Rebuild for readline 7.x - Rebuild for readline 7.x