Another xfail test
authorIustin Pop <iustin@k1024.org>
Fri, 29 Nov 2019 15:32:07 +0000 (16:32 +0100)
committerIustin Pop <iustin@k1024.org>
Fri, 29 Nov 2019 15:32:07 +0000 (16:32 +0100)
tests/test_acls.py

index 65fd091a90c7af226942eca0637a00a181cda28e..6e5bbea4e78a6879707a9135dbf96f424a09d5ae 100644 (file)
@@ -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)