Attachment 'python-2.5.2.p9.patch'
Download 1 --- python-2.5.2.p9/src/Lib/test/seq_tests.py~ 2007-11-13 07:04:41.000000000 +1100
2 +++ python-2.5.2.p9/src/Lib/test/seq_tests.py 2008-08-01 03:08:14.000000000 +1000
3 @@ -307,11 +307,13 @@
4 self.assertEqual(id(s), id(s*1))
5
6 def test_bigrepeat(self):
7 - x = self.type2test([0])
8 - x *= 2**16
9 - self.assertRaises(MemoryError, x.__mul__, 2**16)
10 - if hasattr(x, '__imul__'):
11 - self.assertRaises(MemoryError, x.__imul__, 2**16)
12 + import sys
13 + if sys.maxint <= 2147483647:
14 + x = self.type2test([0])
15 + x *= 2**16
16 + self.assertRaises(MemoryError, x.__mul__, 2**16)
17 + if hasattr(x, '__imul__'):
18 + self.assertRaises(MemoryError, x.__imul__, 2**16)
19
20 def test_subscript(self):
21 a = self.type2test([10, 11])
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.