Commits

Anonymous committed 6c164d7

Skip test under 64-bit Windows

Comments (0)

Files changed (1)

Lib/test/test_bisect.py

     def test_large_range(self):
         # Issue 13496
         mod = self.module
-        data = xrange(sys.maxsize-1)
+        try:
+            data = xrange(sys.maxsize-1)
+        except OverflowError:
+            self.skipTest("can't create a xrange() object of size `sys.maxsize`")
         self.assertEqual(mod.bisect_left(data, sys.maxsize-3), sys.maxsize-3)
         self.assertEqual(mod.bisect_right(data, sys.maxsize-3), sys.maxsize-2)