mirror of https://github.com/python/cpython
Issue #16595: prlimit() needs Linux kernel 2.6.36+
This commit is contained in:
parent
2bcb1f68b6
commit
c4a4b346a6
|
@ -90,7 +90,7 @@ this module for those platforms.
|
|||
:exc:`PermissionError` when the user doesn't have ``CAP_SYS_RESOURCE`` for
|
||||
the process.
|
||||
|
||||
Availability: Linux (glibc 2.13+)
|
||||
Availability: Linux 2.6.36 or later with glibc 2.13 or later
|
||||
|
||||
.. versionadded:: 3.4
|
||||
|
||||
|
|
|
@ -141,6 +141,7 @@ class ResourceTest(unittest.TestCase):
|
|||
|
||||
|
||||
@unittest.skipUnless(hasattr(resource, 'prlimit'), 'no prlimit')
|
||||
@support.requires_linux_version(2, 6, 36)
|
||||
def test_prlimit(self):
|
||||
self.assertRaises(TypeError, resource.prlimit)
|
||||
if os.geteuid() != 0:
|
||||
|
|
Loading…
Reference in New Issue