Commits

Ronald Oussoren  committed 692dd31

Fix test failures on OSX 10.5

  • Participants
  • Parent commits 1d3fa93
  • Branches pyobjc-2.5.x

Comments (0)

Files changed (3)

File pyobjc-framework-SyncServices/Modules/_SyncServices_protocols.m

 {
     PyObject* p;
     p = PyObjC_IdToPython(@protocol(ISyncFiltering)); Py_XDECREF(p);
+#if PyObjC_BUILD_RELEASE >= 1005
     p = PyObjC_IdToPython(@protocol(ISyncSessionDriverDataSource)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(NSPersistentStoreCoordinatorSyncing)); Py_XDECREF(p);
+#endif /* PyObjC_BUILD_RELEASE >= 1005 */
 }

File pyobjc-framework-SyncServices/PyObjCTest/test_isyncchange.py

         self.assertIsInstance(ISyncChangePropertyNameKey, unicode)
         self.assertIsInstance(ISyncChangePropertyValueKey, unicode)
 
-    @min_os_level('10.5')
+    @min_os_level('10.6')
     def testConstants10_5(self):
+        # Document for 10.5, but not actually present there
         self.assertIsInstance(ISyncChangePropertyValueIsDefaultKey, unicode)
 
 if __name__ == "__main__":

File pyobjc-framework-SyncServices/PyObjCTest/test_syncservices.py

 
     def testProtocols(self):
         objc.protocolNamed('ISyncFiltering')
+
+    @min_os_level('10.6')
+    def testProtocols10_5(self):
+        # Document for 10.5, but not actually present there
         objc.protocolNamed('ISyncSessionDriverDataSource')
         objc.protocolNamed('NSPersistentStoreCoordinatorSyncing')