mirror of https://github.com/python/cpython
bpo-37098: Skip memfd_create test before Linux 3.17 (GH-13677)
This commit is contained in:
parent
eda385c0dc
commit
6eb814b8ce
|
@ -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)
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Fix test_memfd_create on older Linux Kernels.
|
Loading…
Reference in New Issue