diff --git a/Lib/test/test_resource.py b/Lib/test/test_resource.py index 4b852789be7e44..b07eb73b2aeb71 100644 --- a/Lib/test/test_resource.py +++ b/Lib/test/test_resource.py @@ -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)