mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
bpo-31132: Remove prlimit permission test. (GH-9280)
This test is doesn't work when the test process is privledged, which is hard to detect. https://bugs.python.org/issue34668
This commit is contained in:
parent
84db4a9978
commit
01e0afa994
1 changed files with 0 additions and 3 deletions
|
@ -147,9 +147,6 @@ class ResourceTest(unittest.TestCase):
|
|||
@support.requires_linux_version(2, 6, 36)
|
||||
def test_prlimit(self):
|
||||
self.assertRaises(TypeError, resource.prlimit)
|
||||
if os.geteuid() != 0:
|
||||
self.assertRaises(PermissionError, resource.prlimit,
|
||||
1, resource.RLIMIT_AS)
|
||||
self.assertRaises(ProcessLookupError, resource.prlimit,
|
||||
-1, resource.RLIMIT_AS)
|
||||
limit = resource.getrlimit(resource.RLIMIT_AS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue