summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_itertools.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-02-02 02:00:15 (GMT)
committerBenjamin Peterson <benjamin@python.org>2015-02-02 02:00:15 (GMT)
commit819c4e9bc41abceca28c4f8488244d03c679b8c4 (patch)
tree1873b39582392fea4c23adf98020b241ae0059ac /Lib/test/test_itertools.py
parentd40f136d35cbe2ac4dd5b3bc8e3474343865b8dd (diff)
parent4b40eeb33901c3a520ce78ae88eb5ee06870130f (diff)
downloadcpython-819c4e9bc41abceca28c4f8488244d03c679b8c4.zip
cpython-819c4e9bc41abceca28c4f8488244d03c679b8c4.tar.gz
cpython-819c4e9bc41abceca28c4f8488244d03c679b8c4.tar.bz2
merge 3.3 (#23366)
Diffstat (limited to 'Lib/test/test_itertools.py')
-rw-r--r--Lib/test/test_itertools.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py
index 511094e..c5be5e4 100644
--- a/Lib/test/test_itertools.py
+++ b/Lib/test/test_itertools.py
@@ -264,6 +264,11 @@ class TestBasicOps(unittest.TestCase):
for proto in range(pickle.HIGHEST_PROTOCOL + 1):
self.pickletest(proto, combinations(values, r)) # test pickling
+ @support.bigaddrspacetest
+ def test_combinations_overflow(self):
+ with self.assertRaises(OverflowError):
+ combinations("AA", 2**29)
+
# Test implementation detail: tuple re-use
@support.impl_detail("tuple reuse is specific to CPython")
def test_combinations_tuple_reuse(self):