Commits

Ronald Oussoren committed 890f69f

Fix some test failures on OSX 10.6.8 (10.4 SDK)

Comments (0)

Files changed (2)

pyobjc-framework-Cocoa/PyObjCTest/test_cfpreferences.py

         self.assertResultIsCFRetained(CFPreferencesCopyKeyList)
         keys = CFPreferencesCopyKeyList(b"com.apple.AddressBook".decode('ascii'), kCFPreferencesCurrentUser, kCFPreferencesAnyHost)
         self.assertIsInstance(keys, CFArrayRef)
-        self.assertIsIn(b"ABVersion".decode('ascii'), keys)
+        self.assertTrue(b"ABVersion".decode('ascii') in keys or b"ABNameDisplay".decode('ascii') in keys)
 
     def testConstants(self):
         self.assertIsInstance(kCFPreferencesAnyApplication, unicode)

pyobjc-framework-Cocoa/PyObjCTest/test_nsfilemanager.py

         self.assertArgIsOut(NSFileManager.URLForPublishingUbiquitousItemAtURL_expirationDate_error_, 1)
         self.assertArgIsOut(NSFileManager.URLForPublishingUbiquitousItemAtURL_expirationDate_error_, 2)
 
+    @min_os_level('10.8')
     def testMethods10_8(self):
         self.assertResultIsBOOL(NSFileManager.trashItemAtURL_resultingItemURL_error_)
         self.assertArgIsOut(NSFileManager.trashItemAtURL_resultingItemURL_error_, 1)