8000 bpo-31132: Remove prlimit permission test. by benjaminp · Pull Request #9280 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-31132: Remove prlimit permission test. #9280

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 13, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
closes bpo-34668: Remove prlimit permission test.
This test is doesn't work when the test process is privledged, which is hard to detect.
  • Loading branch information
benjaminp committed Sep 13, 2018
commit 82ca5f97d0e1243427446eb8bed39065cf0287cf
3 changes: 0 additions & 3 deletions Lib/test/test_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,6 @@ def test_freebsd_contants(self):
@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)
Expand Down
0