From fdbe25ea85625dcc8a1e13256542eff0b085df84 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Thu, 5 Dec 2019 21:32:02 +0100 Subject: [PATCH] Add a test for __setstate__ arguments --- tests/test_acls.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_acls.py b/tests/test_acls.py index eb01669..8de6aa2 100644 --- a/tests/test_acls.py +++ b/tests/test_acls.py @@ -486,6 +486,12 @@ class TestAclExtensions: assert a == b assert b != c + @require_copy_ext + def test_acl_copy_ext_args(self): + a = posix1e.ACL() + with pytest.raises(TypeError): + a.__setstate__(None) + class TestWrite: """Write tests""" -- 2.39.2