From 6eb814b8ce9a4fed8773a65501fb96aad8b3ecf2 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Thu, 30 May 2019 11:27:06 +0200 Subject: bpo-37098: Skip memfd_create test before Linux 3.17 (GH-13677) --- Lib/test/test_os.py | 1 + Misc/NEWS.d/next/Tests/2019-05-30-10-57-39.bpo-37098.SfXt1M.rst | 1 + 2 files changed, 2 insertions(+) create mode 100644 Misc/NEWS.d/next/Tests/2019-05-30-10-57-39.bpo-37098.SfXt1M.rst diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 820c99c..f17a19a 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -3123,6 +3123,7 @@ class TermsizeTests(unittest.TestCase): @unittest.skipUnless(hasattr(os, 'memfd_create'), 'requires os.memfd_create') +@support.requires_linux_version(3, 17) class MemfdCreateTests(unittest.TestCase): def test_memfd_create(self): fd = os.memfd_create("Hi", os.MFD_CLOEXEC) diff --git a/Misc/NEWS.d/next/Tests/2019-05-30-10-57-39.bpo-37098.SfXt1M.rst b/Misc/NEWS.d/next/Tests/2019-05-30-10-57-39.bpo-37098.SfXt1M.rst new file mode 100644 index 0000000..84e06e7 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2019-05-30-10-57-39.bpo-37098.SfXt1M.rst @@ -0,0 +1 @@ +Fix test_memfd_create on older Linux Kernels. -- cgit v0.12