Commits

Ronald Oussoren committed f86df35

Use objc.setStrBridgeEnabled correctly

Comments (0)

Files changed (1)

pyobjc/Lib/Foundation/test/test_nsstring.py

         self.assert_(isinstance(self.pyUniString, unicode))
 
     def testStrConversion(self):
-        curEnabledFlag = objc.setStrBridgeEnabled(True)
+        curEnabledFlag = objc.getStrBridgeEnabled()
+        objc.setStrBridgeEnabled(True)
         try:
             v = NSString.stringWithString_("hello")
             self.assert_(isinstance(v, objc.pyobjc_unicode))