summaryrefslogtreecommitdiff
path: root/Lib/test/test_itertools.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-02-01 21:11:54 -0500
committerBenjamin Peterson <benjamin@python.org>2015-02-01 21:11:54 -0500
commite2d8abacf40d0b4708dd39cd632a2b893a5e37d0 (patch)
tree96f6c7652d470a2ed019905593d6324383c83aa5 /Lib/test/test_itertools.py
parent2e3a65caff5f22c7c32724fe8ea856d11db2ee73 (diff)
parent676c04695e0116e85645762606e9881b524b2abf (diff)
downloadcpython-e2d8abacf40d0b4708dd39cd632a2b893a5e37d0.tar.gz
merge 3.4 (#23365)
Diffstat (limited to 'Lib/test/test_itertools.py')
-rw-r--r--Lib/test/test_itertools.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py
index 52a41b5b8a..960cb9120f 100644
--- a/Lib/test/test_itertools.py
+++ b/Lib/test/test_itertools.py
@@ -351,8 +351,12 @@ class TestBasicOps(unittest.TestCase):
for proto in range(pickle.HIGHEST_PROTOCOL + 1):
self.pickletest(proto, cwr(values,r)) # test pickling
- # Test implementation detail: tuple re-use
+ @support.bigaddrspacetest
+ def test_combinations_with_replacement_overflow(self):
+ with self.assertRaises(OverflowError):
+ combinations_with_replacement("AA", 2**30)
+ # Test implementation detail: tuple re-use
@support.impl_detail("tuple reuse is specific to CPython")
def test_combinations_with_replacement_tuple_reuse(self):
cwr = combinations_with_replacement