component(developer/golang-123): Add Component
[oi-userland.git] / components / python / python27 / patches / disable-test_bigrepeat.patch
blob4e32c6eb1e674a5a850c5159eb86dd4a8b0e8326
1 bigrepeat test dumps core:
3 test_bigrepeat (test.test_tuple.TupleTest) ... make[1]: *** [Makefile:900: test] Segmentation Fault
5 --- Python-2.7.14/Lib/test/seq_tests.py 2018-04-30 00:47:33.000000000 +0000
6 +++ Python-2.7.14/Lib/test/seq_tests.py 2018-08-23 20:18:13.210442563 +0000
7 @@ -319,13 +319,7 @@ class CommonTest(unittest.TestCase):
8 self.assertEqual(id(s), id(s*1))
10 def test_bigrepeat(self):
11 - import sys
12 - if sys.maxint <= 2147483647:
13 - x = self.type2test([0])
14 - x *= 2**16
15 - self.assertRaises(MemoryError, x.__mul__, 2**16)
16 - if hasattr(x, '__imul__'):
17 - self.assertRaises(MemoryError, x.__imul__, 2**16)
18 + return True
20 def test_subscript(self):
21 a = self.type2test([10, 11])