소스 검색

Fix Cython issue on Linux

Jonas Borgström 11 년 전
부모
커밋
4bcc1b8ff9
2개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      attic/platform_linux.pyx
  2. 2 0
      attic/testsuite/platform.py

+ 1 - 1
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 = []

+ 2 - 0
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):