]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-139310: Revert test skip for `test_aead_aes_gcm` (GH-139552) (GH-149687)
authorPetr Viktorin <encukou@gmail.com>
Tue, 26 May 2026 12:36:36 +0000 (14:36 +0200)
committerGitHub <noreply@github.com>
Tue, 26 May 2026 12:36:36 +0000 (14:36 +0200)
This reverts commit 41712c4e095b2cc988febfe3887616c2779c6210.

Anyone running tests on a kernel with the bug will now see a failure.

Lib/test/support/__init__.py
Lib/test/test_socket.py

index 62804e2fa2d68e905d043703dabe982400af3157..1b4ad5a22ee271c9adf1873bcc929a18ef33a639 100644 (file)
@@ -324,16 +324,6 @@ def requires(resource, msg=None):
     if resource == 'gui' and not _is_gui_available():
         raise ResourceDenied(_is_gui_available.reason)
 
-def _get_kernel_version(sysname="Linux"):
-    import platform
-    if platform.system() != sysname:
-        return None
-    version_txt = platform.release().split('-', 1)[0]
-    try:
-        return tuple(map(int, version_txt.split('.')))
-    except ValueError:
-        return None
-
 def _requires_unix_version(sysname, min_version):
     """Decorator raising SkipTest if the OS is `sysname` and the version is less
     than `min_version`.
index 5b4c88793f8e234f25a8e7d459598203ac745397..94325f5a8003d977f9e0494d7638b9b6ca29bddd 100644 (file)
@@ -7191,12 +7191,6 @@ class LinuxKernelCryptoAPI(unittest.TestCase):
 
     @support.requires_linux_version(4, 9)  # see gh-73510
     def test_aead_aes_gcm(self):
-        kernel_version = support._get_kernel_version("Linux")
-        if kernel_version is not None:
-            if kernel_version >= (6, 16) and kernel_version < (6, 18):
-                # See https://github.com/python/cpython/issues/139310.
-                self.skipTest("upstream Linux kernel issue")
-
         key = bytes.fromhex('c939cc13397c1d37de6ae0e1cb7c423c')
         iv = bytes.fromhex('b3d8cc017cbb89b39e0f67e2')
         plain = bytes.fromhex('c3b3c41f113a31b73d9a5cd432103069')