Commits

Ronald Oussoren committed 66169b9

Surpress test failure on OSX 10.5 (NSNumber issue)

Comments (0)

Files changed (1)

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__'))
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.