[PyObjC-svn] r2275 - in trunk/pyobjc/pyobjc-framework-DictionaryServices: Lib/DictionaryServices PyObjCTest
[email protected] Tue, 01 Sep 2009 13:52:13 -0500
| Newsgroups | gmane.comp.python.pyobjc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: ronaldoussoren
Date: Tue Sep 1 13:52:13 2009
New Revision: 2275
Log:
Port to SnowLeopard
Modified:
trunk/pyobjc/pyobjc-framework-DictionaryServices/Lib/DictionaryServices/PyObjC.bridgesupport
trunk/pyobjc/pyobjc-framework-DictionaryServices/PyObjCTest/test_dictionaryservices.py
Modified: trunk/pyobjc/pyobjc-framework-DictionaryServices/Lib/DictionaryServices/PyObjC.bridgesupport
==============================================================================
--- trunk/pyobjc/pyobjc-framework-DictionaryServices/Lib/DictionaryServices/PyObjC.bridgesupport (original)
+++ trunk/pyobjc/pyobjc-framework-DictionaryServices/Lib/DictionaryServices/PyObjC.bridgesupport Tue Sep 1 13:52:13 2009
@@ -15,5 +15,8 @@
<arg type='^{__CFString=}' />
<arg type='l' type64='l' />
</function>
+ <function name='DCSDictionaryGetTypeID'>
+ <retval type='i' type64='q' />
+ </function>
</signatures>
Modified: trunk/pyobjc/pyobjc-framework-DictionaryServices/PyObjCTest/test_dictionaryservices.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-DictionaryServices/PyObjCTest/test_dictionaryservices.py (original)
+++ trunk/pyobjc/pyobjc-framework-DictionaryServices/PyObjCTest/test_dictionaryservices.py Tue Sep 1 13:52:13 2009
@@ -7,8 +7,7 @@
class TestDictionaryServices (TestCase):
def testClasses(self):
- self.failUnless( issubclass(DCSDictionaryRef, objc.lookUpClass('NSCFType')) )
- self.failUnless( DCSDictionaryRef is not objc.lookUpClass('NSCFType') )
+ self.failUnlessIsCFType(DCSDictionaryRef)
def testFunctions(self):
@@ -19,6 +18,9 @@
r = DCSCopyTextDefinition(None, u"the hello world program", r)
self.failUnlessIsInstance(r, unicode)
+ v = DCSDictionaryGetTypeID()
+ self.failUnlessIsInstance(v, (int, long))
+
if __name__ == "__main__":
main()
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july