[Python-checkins] cpython (2.7): Skip test under 64-bit Windows

antoine.pitrou python-checkins at python.org
Wed May 16 15:04:06 CEST 2012


http://hg.python.org/cpython/rev/6c164d788140
changeset:   76993:6c164d788140
branch:      2.7
parent:      76980:180d16af22e9
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Wed May 16 14:50:25 2012 +0200
summary:
  Skip test under 64-bit Windows

files:
  Lib/test/test_bisect.py |  5 ++++-
  1 files changed, 4 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_bisect.py b/Lib/test/test_bisect.py
--- a/Lib/test/test_bisect.py
+++ b/Lib/test/test_bisect.py
@@ -125,7 +125,10 @@
     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)
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list