summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_itertools.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-02-02 02:11:54 (GMT)
committerBenjamin Peterson <benjamin@python.org>2015-02-02 02:11:54 (GMT)
commit38d9772622fa13f7dc1033cd29bad1b15a31c8b4 (patch)
treecae2697191bffe2ea4791a98e35f4732a75bacdf /Lib/test/test_itertools.py
parent4db56d5002e536bf37ed2a3fa32d899d873bde77 (diff)
parentf635dc32b1dc3d322acd281921afdb8c13261838 (diff)
downloadcpython-38d9772622fa13f7dc1033cd29bad1b15a31c8b4.zip
cpython-38d9772622fa13f7dc1033cd29bad1b15a31c8b4.tar.gz
cpython-38d9772622fa13f7dc1033cd29bad1b15a31c8b4.tar.bz2
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 52a41b5..960cb91 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