mirror of https://github.com/python/cpython
Skip test under 64-bit Windows
This commit is contained in:
parent
e3d8ab6d38
commit
4cf3f69250
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue