[Python-checkins] cpython: Issue #16595: prlimit() needs Linux kernel 2.6.36+

christian.heimes python-checkins at python.org
Fri Oct 25 08:31:30 CEST 2013


http://hg.python.org/cpython/rev/87d41a5a9077
changeset:   86609:87d41a5a9077
user:        Christian Heimes <christian at cheimes.de>
date:        Fri Oct 25 08:31:19 2013 +0200
summary:
  Issue #16595: prlimit() needs Linux kernel 2.6.36+

files:
  Doc/library/resource.rst  |  2 +-
  Lib/test/test_resource.py |  1 +
  2 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/Doc/library/resource.rst b/Doc/library/resource.rst
--- a/Doc/library/resource.rst
+++ b/Doc/library/resource.rst
@@ -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 --git a/Lib/test/test_resource.py b/Lib/test/test_resource.py
--- a/Lib/test/test_resource.py
+++ b/Lib/test/test_resource.py
@@ -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:

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list