diff options
author | Benjamin Peterson <benjamin@python.org> | 2018-09-13 13:32:24 -0700 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2018-09-13 13:32:24 -0700 |
commit | 82ca5f97d0e1243427446eb8bed39065cf0287cf (patch) | |
tree | 87d637f04789418b40deaf3b266d566183a74e64 /Lib/test/test_resource.py | |
parent | e78734d579439861f6d7e12f35d268836b2c1e24 (diff) | |
download | cpython-git-benjamin-prlimit-permission-test.tar.gz |
closes bpo-34668: Remove prlimit permission test.benjamin-prlimit-permission-test
This test is doesn't work when the test process is privledged, which is hard to detect.
Diffstat (limited to 'Lib/test/test_resource.py')
-rw-r--r-- | Lib/test/test_resource.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/test/test_resource.py b/Lib/test/test_resource.py index 4b852789be..b07eb73b2a 100644 --- a/Lib/test/test_resource.py +++ b/Lib/test/test_resource.py @@ -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) |