bpo-31132: Remove prlimit permission test. (GH-9280) · python/cpython@f79d74d (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit f79d74d

miss-islingtonbenjaminp

and

authored

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

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -148,9 +148,6 @@ def test_freebsd_contants(self):
148 148 @support.requires_linux_version(2, 6, 36)
149 149 def test_prlimit(self):
150 150 self.assertRaises(TypeError, resource.prlimit)
151 -if os.geteuid() != 0:
152 -self.assertRaises(PermissionError, resource.prlimit,
153 -1, resource.RLIMIT_AS)
154 151 self.assertRaises(ProcessLookupError, resource.prlimit,
155 152 -1, resource.RLIMIT_AS)
156 153 limit = resource.getrlimit(resource.RLIMIT_AS)