[Python-checkins] cpython (merge 3.6 -> default): Issue #29145: Merge test from 3.6
martin.panter
python-checkins at python.org
Sat Jan 14 02:25:13 EST 2017
https://hg.python.org/cpython/rev/0c6ea411af17
changeset: 106144:0c6ea411af17
parent: 106140:3486425ed82b
parent: 106143:e3e129cdf85c
user: Martin Panter <vadmium+py at gmail.com>
date: Sat Jan 14 06:29:32 2017 +0000
summary:
Issue #29145: Merge test from 3.6
files:
Lib/test/test_unicode.py | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py
--- a/Lib/test/test_unicode.py
+++ b/Lib/test/test_unicode.py
@@ -465,6 +465,13 @@
self.checkraises(TypeError, ' ', 'join', [1, 2, 3])
self.checkraises(TypeError, ' ', 'join', ['1', '2', 3])
+ @unittest.skipIf(sys.maxsize > 2**32,
+ 'needs too much memory on a 64-bit platform')
+ def test_join_overflow(self):
+ size = int(sys.maxsize**0.5) + 1
+ seq = ('A' * size,) * size
+ self.assertRaises(OverflowError, ''.join, seq)
+
def test_replace(self):
string_tests.CommonTest.test_replace(self)
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list