diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-09-13 22:22:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-13 22:22:16 (GMT) |
commit | f79d74d5a3ceb06b63996e8ecf23e419e16e4be2 (patch) | |
tree | 5bf78ff777edd49f54bddcb9e3a938fa066cefff | |
parent | 81361cdff847f14f6258c0ead17817d6f9e04022 (diff) | |
download | cpython-f79d74d5a3ceb06b63996e8ecf23e419e16e4be2.zip cpython-f79d74d5a3ceb06b63996e8ecf23e419e16e4be2.tar.gz cpython-f79d74d5a3ceb06b63996e8ecf23e419e16e4be2.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
(cherry picked from commit 01e0afa994c2e840f85e2de103e72a2c0ddf1b1f)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
-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 cc9c570..b405f01 100644 --- a/Lib/test/test_resource.py +++ b/Lib/test/test_resource.py @@ -148,9 +148,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) |