mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-23 06:31:58 +00:00
Fix Cython issue on Linux
This commit is contained in:
parent
8c25d02481
commit
4bcc1b8ff9
2 changed files with 3 additions and 1 deletions
|
@ -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 = []
|
||||
|
|
|
@ -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):
|
||||
|
||||
|
|
Loading…
Reference in a new issue