Skip to content

Commit 6eb814b

Browse files
authored
bpo-37098: Skip memfd_create test before Linux 3.17 (GH-13677)
1 parent eda385c commit 6eb814b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Lib/test/test_os.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3123,6 +3123,7 @@ def test_stty_match(self):
31233123

31243124

31253125
@unittest.skipUnless(hasattr(os, 'memfd_create'), 'requires os.memfd_create')
3126+
@support.requires_linux_version(3, 17)
31263127
class MemfdCreateTests(unittest.TestCase):
31273128
def test_memfd_create(self):
31283129
fd = os.memfd_create("Hi", os.MFD_CLOEXEC)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix test_memfd_create on older Linux Kernels.

0 commit comments

Comments
 (0)