Commits

Ronald Oussoren  committed 66169b9

Surpress test failure on OSX 10.5 (NSNumber issue)

  • Participants
  • Parent commits b827a10
  • Branches pyobjc-2.5.x

Comments (0)

Files changed (1)

File pyobjc-core/PyObjCTest/test_number_proxy.py

         v = NSNumber.numberWithUnsignedLongLong_(2 ** 63 + 5000)
         self.assertIsInstance(v, long)
 
-        self.assertEqual(v.description(), str(2**63+5000))
+        if os_release() <= '10.5':
+            self.assertEqual(v.description(), str(-2**63+5000))
+        else:
+            self.assertEqual(v.description(), str(2**63+5000))
 
         self.assertIsNot(type(v), long)
 
         data = pickle.dumps(v)
 
         w = pickle.loads(data)
-        self.assertEqual(w, {
-            'long': 2**63 + 5000,
-            'int': 42,
-            'float': 2.0,
-        })
+        if os_release() <= '10.5':
+            self.assertEqual(w, {
+                'long': -2**63 + 5000,
+                'int': 42,
+                'float': 2.0,
+            })
+        else:
+            self.assertEqual(w, {
+                'long': 2**63 + 5000,
+                'int': 42,
+                'float': 2.0,
+            })
 
         for o in v.values():
             self.assertTrue(hasattr(o, '__pyobjc_object__'))