From: Antoine Pitrou Date: Wed, 16 May 2012 12:50:25 +0000 (+0200) Subject: Skip test under 64-bit Windows X-Git-Tag: v2.7.4rc1~818 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4cf3f69250c801e20fd8ac6d60c1c11881e5f141;p=python Skip test under 64-bit Windows --- diff --git a/Lib/test/test_bisect.py b/Lib/test/test_bisect.py index 4f004d2213..f96cf442dc 100644 --- a/Lib/test/test_bisect.py +++ b/Lib/test/test_bisect.py @@ -125,7 +125,10 @@ class TestBisect(unittest.TestCase): 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)