diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-02-02 02:01:43 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-02-02 02:01:43 (GMT) |
commit | 4db56d5002e536bf37ed2a3fa32d899d873bde77 (patch) | |
tree | f3b66c6563d8bb1075c63314de6889bfc0196d5a /Lib/test/test_itertools.py | |
parent | ad9f99e41fb7d7e51c8424bb3adba6ad555d0451 (diff) | |
parent | 819c4e9bc41abceca28c4f8488244d03c679b8c4 (diff) | |
download | cpython-4db56d5002e536bf37ed2a3fa32d899d873bde77.zip cpython-4db56d5002e536bf37ed2a3fa32d899d873bde77.tar.gz cpython-4db56d5002e536bf37ed2a3fa32d899d873bde77.tar.bz2 |
merge 3.4 (#23366)
Diffstat (limited to 'Lib/test/test_itertools.py')
-rw-r--r-- | Lib/test/test_itertools.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py index 5cb0b08..52a41b5 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): |