We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2a6aa3 commit 2b16294Copy full SHA for 2b16294
Lib/test/test_resource.py
@@ -147,9 +147,6 @@ def test_freebsd_contants(self):
147
@support.requires_linux_version(2, 6, 36)
148
def test_prlimit(self):
149
self.assertRaises(TypeError, resource.prlimit)
150
- if os.geteuid() != 0:
151
- self.assertRaises(PermissionError, resource.prlimit,
152
- 1, resource.RLIMIT_AS)
153
self.assertRaises(ProcessLookupError, resource.prlimit,
154
-1, resource.RLIMIT_AS)
155
limit = resource.getrlimit(resource.RLIMIT_AS)
0 commit comments