From c4a4b346a6caa46a5df0c9a7adf5c52fe3008d73 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Fri, 25 Oct 2013 08:31:19 +0200 Subject: [PATCH] Issue #16595: prlimit() needs Linux kernel 2.6.36+ --- Doc/library/resource.rst | 2 +- Lib/test/test_resource.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/resource.rst b/Doc/library/resource.rst index d49e13c5ad..9bb5848e3a 100644 --- a/Doc/library/resource.rst +++ b/Doc/library/resource.rst @@ -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 diff --git a/Lib/test/test_resource.py b/Lib/test/test_resource.py index 239d8d5e8d..2184655220 100644 --- a/Lib/test/test_resource.py +++ b/Lib/test/test_resource.py @@ -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: -- 2.40.0