1. Vinay Sajip
  2. pythonv

Commits

Antoine Pitrou  committed 6c164d7

Skip test under 64-bit Windows

  • Participants
  • Parent commits 180d16a
  • Branches 2.7

Comments (0)

Files changed (1)

File Lib/test/test_bisect.py

View file
     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)