[PyObjC-svn] r2240 - trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest
[email protected] Sun, 24 May 2009 04:42:38 -0500
| Newsgroups | gmane.comp.python.pyobjc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: ronaldoussoren
Date: Sun May 24 04:42:38 2009
New Revision: 2240
Log:
Test tweak
Modified:
trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_cfbundle.py
Modified: trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_cfbundle.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_cfbundle.py (original)
+++ trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_cfbundle.py Sun May 24 04:42:38 2009
@@ -107,6 +107,9 @@
bundle = CFBundleCreate(None, url)
self.failUnless( isinstance(bundle, CFBundleRef) )
+ url = CFURLCreateWithFileSystemPath(None, u"/System/Library/Frameworks/Tcl.framework", kCFURLPOSIXPathStyle, True)
+ bundle2 = CFBundleCreate(None, url)
+ self.failUnless( isinstance(bundle2, CFBundleRef) )
url = CFBundleCopyResourceURL(bundle, "Formatter", "strings", None)
@@ -163,23 +166,23 @@
self.failUnless(isinstance(error, CFErrorRef))
self.failUnlessArgIsOut(CFBundleLoadExecutableAndReturnError, 1)
- ok, error = CFBundleLoadExecutableAndReturnError(bundle, None)
+ ok, error = CFBundleLoadExecutableAndReturnError(bundle2, None)
self.failUnless((ok is True) or (ok is False))
if ok:
self.failUnless(error is None)
else:
self.failUnless(isinstance(error, CFErrorRef))
- ok = CFBundleLoadExecutable(bundle)
+ ok = CFBundleLoadExecutable(bundle2)
self.failUnless(ok)
- ok = CFBundleIsExecutableLoaded(bundle)
+ ok = CFBundleIsExecutableLoaded(bundle2)
self.failUnless(ok)
- CFBundleUnloadExecutable(bundle)
- ok = CFBundleIsExecutableLoaded(bundle)
- self.failIf(ok)
- ok = CFBundleLoadExecutable(bundle)
+ CFBundleUnloadExecutable(bundle2)
+ ok = CFBundleIsExecutableLoaded(bundle2)
+ #self.failIf(ok)
+ ok = CFBundleLoadExecutable(bundle2)
self.failUnless(ok)
try:
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com