bpo-37098: Skip memfd_create test before Linux 3.17 (GH-13677)

This commit is contained in:
Christian Heimes 2019-05-30 11:27:06 +02:00 committed by GitHub
parent eda385c0dc
commit 6eb814b8ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View 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)

View File

@ -0,0 +1 @@
Fix test_memfd_create on older Linux Kernels.