Issue #16595: prlimit() needs Linux kernel 2.6.36+

This commit is contained in:
Christian Heimes 2013-10-25 08:31:19 +02:00
parent 2bcb1f68b6
commit c4a4b346a6
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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: