Commits

Ronald Oussoren committed ffdb495

Two testsuite fixes

- 'unicode' doesn't exist in python 3

- really ensure that the Social framework isn't imported when
running as a 32-bit process.

  • Participants
  • Parent commits 3684cf5

Comments (0)

Files changed (2)

File pyobjc-framework-Social/PyObjCTest/test_slrequest.py

 from PyObjCTools.TestSupport import *
 import sys
-import Social
 
 SLRequestHandler = b'v@@@'
 
 if sys.maxsize > 2**32:
+    import Social
+
     class TestSLRequest (TestCase):
         @min_os_level("10.8")
         def testConstants(self):

File pyobjc-framework-Social/PyObjCTest/test_slservicetypes.py

 from PyObjCTools.TestSupport import *
 import sys
 
+try:
+    unicode
+except NameError:
+    unicode = str
+
 
 if sys.maxsize >= 2**32: