From bcb29c630f5160497373e3273de6313c63c6cea0 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Thu, 30 Apr 2015 19:43:53 +0200 Subject: [PATCH] tests: don't call acl_to_text on an invalid ACL While Linux is happy to convert it to text, it seems that under FreeBSD this doesn't (always? sometimes?) work, so let's use a proper ACL in the str() test. Closes #5. --- test/test_acls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_acls.py b/test/test_acls.py index 9928bf9..aa7d584 100644 --- a/test/test_acls.py +++ b/test/test_acls.py @@ -3,7 +3,7 @@ """Unittests for the posix1e module""" -# Copyright (C) 2002-2009, 2012, 2014 Iustin Pop +# Copyright (C) 2002-2009, 2012, 2014, 2015 Iustin Pop # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -214,7 +214,7 @@ class ModificationTests(aclTest, unittest.TestCase): def testStr(self): """Test str() of an ACL.""" - acl = posix1e.ACL() + acl = posix1e.ACL(text=BASIC_ACL_TEXT) str_acl = str(acl) self.checkRef(str_acl) -- 2.39.2