]> granicus.if.org Git - python/commitdiff
bpo-37098: Skip memfd_create test before Linux 3.17 (GH-13677)
authorChristian Heimes <christian@python.org>
Thu, 30 May 2019 09:27:06 +0000 (11:27 +0200)
committerGitHub <noreply@github.com>
Thu, 30 May 2019 09:27:06 +0000 (11:27 +0200)
Lib/test/test_os.py
Misc/NEWS.d/next/Tests/2019-05-30-10-57-39.bpo-37098.SfXt1M.rst [new file with mode: 0644]

index 820c99c7a07cb469495e10d05e4ebbf1d299b7e7..f17a19a7585d02ac99a3b0ec1461959e8de6dd2f 100644 (file)
@@ -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 (file)
index 0000000..84e06e7
--- /dev/null
@@ -0,0 +1 @@
+Fix test_memfd_create on older Linux Kernels.