Commits

Ronald Oussoren committed 9bd2474

Fix test/build problems on OSX 10.5

Comments (0)

Files changed (2)

pyobjc-framework-ScriptingBridge/Modules/_ScriptingBridge_protocols.m

 static void __attribute__((__used__)) use_protocols(void)
 {
     PyObject* p;
+#if PyObjC_BUILD_RELEASE >= 1005
     p = PyObjC_IdToPython(@protocol(SBApplicationDelegate)); Py_XDECREF(p);
+#endif /* PyObjC_BUILD_RELEASE >= 1005 */
 }

pyobjc-framework-ScriptingBridge/PyObjCTest/test_scriptingbridge.py

     def testMethods(self):
         self.assertResultIsBOOL(SBApplication.isRunning)
 
+    @min_os_level('10.6')
     def testProtocols(self):
         objc.protocolNamed('SBApplicationDelegate')