(original) (raw)
changeset: 86609:87d41a5a9077 user: Christian Heimes christian@cheimes.de date: Fri Oct 25 08:31:19 2013 +0200 files: Doc/library/resource.rst Lib/test/test_resource.py description: Issue #16595: prlimit() needs Linux kernel 2.6.36+ diff -r 16357a6786cb -r 87d41a5a9077 Doc/library/resource.rst --- a/Doc/library/resource.rst Fri Oct 25 02:11:17 2013 +0200 +++ b/Doc/library/resource.rst Fri Oct 25 08:31:19 2013 +0200 @@ -90,7 +90,7 @@ :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 diff -r 16357a6786cb -r 87d41a5a9077 Lib/test/test_resource.py --- a/Lib/test/test_resource.py Fri Oct 25 02:11:17 2013 +0200 +++ b/Lib/test/test_resource.py Fri Oct 25 08:31:19 2013 +0200 @@ -141,6 +141,7 @@ @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: /christian@cheimes.de