diff --git a/attic/platform_linux.pyx b/attic/platform_linux.pyx index d9aa14c3c..b0479b89a 100644 --- a/attic/platform_linux.pyx +++ b/attic/platform_linux.pyx @@ -26,7 +26,7 @@ cdef extern from "acl/libacl.h": _comment_re = re.compile(' *#.*', re.M) -cdef acl_use_local_uid_gid(acl): +def acl_use_local_uid_gid(acl): """Replace the user/group field with the local uid/gid if possible """ entries = [] diff --git a/attic/testsuite/platform.py b/attic/testsuite/platform.py index 21859348e..af64dc0f3 100644 --- a/attic/testsuite/platform.py +++ b/attic/testsuite/platform.py @@ -1,5 +1,6 @@ import os import shutil +import sys import tempfile import unittest from attic.platform import acl_get, acl_set @@ -33,6 +34,7 @@ def fakeroot_detected(): return 'FAKEROOTKEY' in os.environ +@unittest.skipUnless(sys.platform.startswith('linux'), 'linux only test') @unittest.skipIf(fakeroot_detected(), 'not compatible with fakeroot') class PlatformLinuxTestCase(AtticTestCase):