]> git.k1024.org Git - pylibacl.git/commit
Fix from_acl tests for non-Linux platforms
authorIustin Pop <iustin@k1024.org>
Tue, 3 Dec 2019 23:50:57 +0000 (00:50 +0100)
committerIustin Pop <iustin@k1024.org>
Tue, 3 Dec 2019 23:50:57 +0000 (00:50 +0100)
commit30d5799a7061e3a55ed8cb7a9eed97e9c124e1fd
tree020e2f10c004397ee32e74eac2ec0f65eb377d6c
parent09c5bd80cf811a0e7b81ceddfb525d576885e097
Fix from_acl tests for non-Linux platforms

FreeBSD doesn't have acl_cmp, so comparison via rich compare is not
defined, thus all comparisons are False. Fix tests so the equality
check is only done on Linux, and add a poor man's test via string
representation equality.
tests/test_acls.py