From cbc27046c7feb6f78598347a8f577f9d091c234f Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Fri, 29 Nov 2019 15:59:51 +0100 Subject: [PATCH] Add xfail test for equiv mode failures Sigh, another bug in upstream library. --- tests/test_acls.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test_acls.py b/tests/test_acls.py index 4721201..65fd091 100644 --- a/tests/test_acls.py +++ b/tests/test_acls.py @@ -424,6 +424,14 @@ class TestAclExtensions: acl = posix1e.ACL(text="u::rx,g::-,o::-") assert acl.equiv_mode() == 0o500 + @require_equiv_mode + @pytest.mark.xfail(reason="It seems equiv mode always passes, even for empty ACLs") + def test_equiv_mode_invalid(self): + """Test equiv_mode on invalid ACLs""" + a = posix1e.ACL() + with pytest.raises(EnvironmentError): + a.equiv_mode() + @require_acl_check def test_to_any_text(self): acl = posix1e.ACL(text=BASIC_ACL_TEXT) -- 2.39.2