diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-02-01 21:11:54 -0500 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-02-01 21:11:54 -0500 |
commit | e2d8abacf40d0b4708dd39cd632a2b893a5e37d0 (patch) | |
tree | 96f6c7652d470a2ed019905593d6324383c83aa5 /Lib/test/test_itertools.py | |
parent | 2e3a65caff5f22c7c32724fe8ea856d11db2ee73 (diff) | |
parent | 676c04695e0116e85645762606e9881b524b2abf (diff) | |
download | cpython-e2d8abacf40d0b4708dd39cd632a2b893a5e37d0.tar.gz |
merge 3.4 (#23365)
Diffstat (limited to 'Lib/test/test_itertools.py')
-rw-r--r-- | Lib/test/test_itertools.py | 6 |
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 |