summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2019-05-30 09:27:06 (GMT)
committerGitHub <noreply@github.com>2019-05-30 09:27:06 (GMT)
commit6eb814b8ce9a4fed8773a65501fb96aad8b3ecf2 (patch)
treea2412a28a0e484b652fb8ea3c78b370800ac47d5
parenteda385c0dca62f97a8ae80feb57c2a51df3c807f (diff)
downloadcpython-6eb814b8ce9a4fed8773a65501fb96aad8b3ecf2.zip
cpython-6eb814b8ce9a4fed8773a65501fb96aad8b3ecf2.tar.gz
cpython-6eb814b8ce9a4fed8773a65501fb96aad8b3ecf2.tar.bz2
bpo-37098: Skip memfd_create test before Linux 3.17 (GH-13677)
-rw-r--r--Lib/test/test_os.py1
-rw-r--r--Misc/NEWS.d/next/Tests/2019-05-30-10-57-39.bpo-37098.SfXt1M.rst1
2 files changed, 2 insertions, 0 deletions
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.