summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_itertools.py
Commit message (Collapse)AuthorAgeFilesLines
* [2.7] bpo-34410: Fix a crash in the tee iterator when re-enter it. ↵Serhiy Storchaka2019-09-091-0/+41
| | | | | | | (GH-15625) (GH-15740) RuntimeError is now raised in this case. (cherry picked from commit 526a01467b3277f9fcf7f91e66c23321caa1245d)
* [2.7] bpo-27212: Modify islice recipe to consume initial values preceding ↵Cheryl Sabella2018-04-021-1/+68
| | | | | start (GH-6195) (GH-6339) (cherry picked from commit da1734c58d2f97387ccc9676074717d38b044128)
* Fix DeprecationWarning in tests (#4345)Victor Stinner2017-11-081-0/+2
| | | | | | Define __hash__() in test_functools and test_itertools to fix the following warning: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
* [2.7] bpo-30347: Stop crashes when concurrently iterate over ↵Serhiy Storchaka2017-09-261-0/+23
| | | | | itertools.groupby() iterators. (GH-1557). (#3772) (cherry picked from commit c740e4fe8a9bc5815dc18c38d7f7600b128c3c51)
* bpo-29942: Fix the use of recursion in itertools.chain.from_iterable. (#913)T. Wouters2017-03-301-0/+8
| | | | | | Fix the use of recursion in itertools.chain.from_iterable. Using recursion is unnecessary, and can easily cause stack overflows, especially when building in low optimization modes or with Py_DEBUG enabled. (cherry picked from commit 5466d4af5fe76ec0a5fbc8a05675287d9e8e9d14)
* Issue #28019: Backported additional tests for itertools.count().Serhiy Storchaka2016-09-101-3/+26
|
* Document another recipe for itertools: all_equal(). Inspired by David Beazley.Raymond Hettinger2016-03-071-0/+8
|
* Make some tests more frienly to MemoryError.Serhiy Storchaka2015-03-281-2/+6
| | | | Free memory, unlock hanging threads.
* Issues #23363, #23364, #23365, #23366: Fixed itertools overflow tests.Serhiy Storchaka2015-02-021-7/+5
| | | | Used PyMem_New to check overflow.
* check for overflows in permutations() and product() (closes #23363, closes ↵Benjamin Peterson2015-02-021-0/+12
| | | | #23364)
* check for overflow in combinations_with_replacement (closes #23365)Benjamin Peterson2015-02-021-0/+5
|
* detect overflow in combinations (closes #23366)Benjamin Peterson2015-02-021-0/+5
|
* Issue #22777: Test pickling with all protocols.Serhiy Storchaka2014-12-151-1/+2
|
* allow test to work on implementations not using ref-counting (closes #22265)Benjamin Peterson2014-08-241-0/+1
|
* Issue #19145: Fix handling of negative values for a "times" keyword ↵Raymond Hettinger2014-06-251-0/+9
| | | | | | argument to itertools.repeat()> (Patch contributed by Vajrasky Kok.)
* Issue #21321: itertools.islice() now releases the reference to the source ↵Antoine Pitrou2014-04-291-2/+11
| | | | | | iterator when the slice is exhausted. Patch by Anton Afanasyev.
* Issue #21346: Fix typos in test_itertools. Patch by Brian Kearns.Zachary Ware2014-04-241-2/+2
|
* Revert a premature patch for issue #14010 (changeset d17d10c84d27).Serhiy Storchaka2013-04-061-134/+1
|
* Issue #14010: Fix a crash when iterating or deleting deeply nested filtersSerhiy Storchaka2013-04-061-1/+134
| | | | in itertools module (i.e. itertools.izip(), itertools.chain(), etc).
* Optimize the test for issue #13454.Serhiy Storchaka2013-01-261-4/+2
| | | | Now it requires almost 4x less memory and is almost 2x faster.
* Issue #13454: Fix a crash when deleting an iterator created by itertools.tee()Serhiy Storchaka2013-01-251-0/+8
| | | | if all other iterators were very advanced before.
* Backport 2eb8789e30e7.Alex Gaynor2011-07-171-6/+15
|
* #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-161-1/+1
|
* Issue #10323: Predictable final state for slice().Raymond Hettinger2010-11-301-0/+5
|
* Merged revisions 86596 via svnmerge fromEzio Melotti2010-11-211-11/+11
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
* #7092: Silence more py3k warnings. Patch by Florent Xicluna.Ezio Melotti2010-02-031-9/+14
|
* use assert[Not]In where appropriateEzio Melotti2010-01-231-1/+1
|
* Reverting the Revision: 77368. I committed Flox's big patch for tests bySenthil Kumaran2010-01-081-12/+9
| | | | mistake. ( It may come in for sure tough)
* Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵Senthil Kumaran2010-01-081-9/+12
| | | | Patch by flox
* Issue 7410: deepcopy of itertools.count resets the countRaymond Hettinger2009-11-301-0/+9
|
* Fix exception handling in itertools.izip_longest().Raymond Hettinger2009-11-011-0/+40
|
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-7/+7
|
* Fix keyword arguments for itertools.count().Raymond Hettinger2009-02-211-0/+2
| | | | Step arg without a start arg was ignored.
* Add some cross-references to the docs. Simplify the python code equivalent ↵Raymond Hettinger2009-02-191-3/+3
| | | | for izip(). Supply an optional argument for the nth() recipe.
* Add keyword arg support to itertools.repeat().Raymond Hettinger2009-02-191-0/+1
|
* Add keyword arg support to itertools.compress().Raymond Hettinger2009-02-191-0/+1
|
* Add GC support to count() objects. Backport candidate.Raymond Hettinger2009-02-161-0/+5
|
* Add keyword argument support to itertools.count().Raymond Hettinger2009-02-141-0/+2
|
* One more test.Raymond Hettinger2009-02-121-0/+3
|
* Add an extra testcase.Raymond Hettinger2009-02-121-0/+3
|
* Issue 5032: added a step argument to itertools.count() and allowed ↵Raymond Hettinger2009-02-121-1/+36
| | | | non-integer arguments.
* Minor doc fixups.Raymond Hettinger2009-02-041-3/+6
|
* Add more tests for the powerset() recipe.Raymond Hettinger2009-01-271-0/+6
|
* More exhaustive combinatoric checks.Raymond Hettinger2009-01-271-16/+28
|
* Stronger tests for combinatoric relationships.Raymond Hettinger2009-01-271-1/+5
|
* Add tests to verify combinatoric relationships.Raymond Hettinger2009-01-271-0/+26
|
* Promote combinations_with_replacement() from a recipe to a regular itertool.Raymond Hettinger2009-01-271-38/+78
|
* Improved itertools recipe for generating powerset().Raymond Hettinger2009-01-251-7/+5
|
* Promote compress() from a recipe to being a regular itertool.Raymond Hettinger2009-01-251-8/+32
|
* Forward port r68394 for issue 4816.Raymond Hettinger2009-01-081-9/+33
|