Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c4a4b34

Browse files
committed
Issue #16595: prlimit() needs Linux kernel 2.6.36+
1 parent 2bcb1f6 commit c4a4b34

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Doc/library/resource.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ this module for those platforms.
9090
:exc:`PermissionError` when the user doesn't have ``CAP_SYS_RESOURCE`` for
9191
the process.
9292

93-
Availability: Linux (glibc 2.13+)
93+
Availability: Linux 2.6.36 or later with glibc 2.13 or later
9494

9595
.. versionadded:: 3.4
9696

Lib/test/test_resource.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ def test_linux_constants(self):
141141

142142

143143
@unittest.skipUnless(hasattr(resource, 'prlimit'), 'no prlimit')
144+
@support.requires_linux_version(2, 6, 36)
144145
def test_prlimit(self):
145146
self.assertRaises(TypeError, resource.prlimit)
146147
if os.geteuid() != 0:

0 commit comments

Comments
 (0)