From fd6134da9a08e52de9ec993cc947835c6e91b1d0 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Fri, 29 Nov 2019 16:32:07 +0100 Subject: [PATCH] Another xfail test --- tests/test_acls.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/test_acls.py b/tests/test_acls.py index 65fd091..6e5bbea 100644 --- a/tests/test_acls.py +++ b/tests/test_acls.py @@ -552,6 +552,17 @@ class TestModification: with pytest.raises(TypeError): acl.append(object()) + @pytest.mark.xfail(reason="Behaviour not conform to specification") + def test_append_invalid_source(self): + a = posix1e.ACL() + b = posix1e.ACL() + f = b.append() + b.delete_entry(f) + with pytest.raises(EnvironmentError): + f.permset.write = True + with pytest.raises(EnvironmentError): + e = a.append(f) + def test_entry_creation(self): acl = posix1e.ACL() e = posix1e.Entry(acl) -- 2.39.5