8000 bpo-31132: Remove prlimit permission test. (GH-9280) · python/cpython@f79d74d · GitHub
[go: up one dir, main page]

Skip to content
/ cpython Public

Commit f79d74d

Browse files
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 01e0afa) Co-authored-by: Benjamin Peterson <benjamin@python.org>
1 parent 81361cd commit f79d74d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Lib/test/test_resource.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,6 @@ def test_freebsd_contants(self):
148148
@support.requires_linux_version(2, 6, 36)
149149
def test_prlimit(self):
150150
self.assertRaises(TypeError, resource.prlimit)
151-
if os.geteuid() != 0:
152-
self.assertRaises(PermissionError, resource.prlimit,
153-
1, resource.RLIMIT_AS)
154151
self.assertRaises(ProcessLookupError, resource.prlimit,
155152
-1, resource.RLIMIT_AS)
156153
limit = resource.getrlimit(resource.RLIMIT_AS)

0 commit comments

Comments
 (0)
0