remove permission check as its probably an unreachable edge case

This commit is contained in:
nicholasmhughes 2023-09-15 10:32:12 -04:00 committed by Gareth J. Greenaway
parent b19682a297
commit 8fbb5d3a26

View file

@ -36,14 +36,6 @@ def test__getgrall(etc_group):
assert grall == expected_grall
@pytest.mark.skip_if_root()
def test__getgrall_permission_denied(etc_group):
etc_group.chmod(0o000)
with pytest.raises(PermissionError):
salt.utils.user._getgrall(root=str(etc_group.parent.parent))
def test__getgrall_bad_format(etc_group):
with etc_group.open("a") as _fp:
_fp.write("\n# some comment here\n")