Commits

Ronald Oussoren committed d5639b7

fix unnecessary 32-bit test failure

Comments (0)

Files changed (1)

pyobjc-core/PyObjCTest/test_nsdecimal.py

         d = objc.NSDecimal(-5)
         self.assertEqual(str(d), "-5")
 
-        self.assertRaises(OverflowError, objc.NSDecimal, sys.maxsize * 3)
+        self.assertRaises(OverflowError, objc.NSDecimal, 1<<66)
 
         d = objc.NSDecimal(0.0)
         self.assertEqual(str(d), "0")
         self.assertFalse(d1 > d2)
         self.assertTrue(d1 > d3)
         self.assertFalse(d1  > d4)
-        
+
         self.assertTrue(d1 >= d1)
         self.assertTrue(d1 >= d2)
         self.assertTrue(d1 >= d3)