diff options
author | Benjamin Peterson <benjamin@python.org> | 2018-09-13 21:53:09 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-09-13 21:53:09 (GMT) |
commit | 01e0afa994c2e840f85e2de103e72a2c0ddf1b1f (patch) | |
tree | 5590ab34b1e332941184218d6950b1e3e9a061f8 /Lib/test/test_resource.py | |
parent | 84db4a9978069a98978e9cd7951d1a01d47e5286 (diff) | |
download | cpython-01e0afa994c2e840f85e2de103e72a2c0ddf1b1f.zip cpython-01e0afa994c2e840f85e2de103e72a2c0ddf1b1f.tar.gz cpython-01e0afa994c2e840f85e2de103e72a2c0ddf1b1f.tar.bz2 |
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
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 4b85278..b07eb73 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) |