Commits

Ronald Oussoren  committed f86df35

Use objc.setStrBridgeEnabled correctly

  • Participants
  • Parent commits 645a521

Comments (0)

Files changed (1)

File 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))