summaryrefslogtreecommitdiff
path: root/Lib/test/test_generators.py
AgeCommit message (Expand)AuthorLines
2009-06-19use closuresBenjamin Peterson-3/+3
2009-06-19show that this one isn't usedBenjamin Peterson-1/+1
2009-06-08remove error checks already done in set_context()Benjamin Peterson-1/+1
2009-04-07fix since difference formating of SyntaxErrorsBenjamin Peterson-4/+8
2008-12-27#4748 lambda generators shouldn't return valuesBenjamin Peterson-0/+10
2008-05-16Make generator repr consistent with function and code object repr.Georg Brandl-1/+1
2008-05-15#2863: add gen.__name__ and add this name to generator repr().Georg Brandl-0/+11
2008-01-26#1473257: add generator.gi_code attribute that refers toGeorg Brandl-1/+19
2007-12-03Patch #1537 from Chad AustinChristian Heimes-0/+13
2007-09-11Generators had their throw() method allowing string exceptions. That's aBrett Cannon-1/+1
2007-02-26When printing an unraisable error, don't print exceptions. before the name.Neal Norwitz-2/+2
2006-07-30Patch #1531113: Fix augmented assignment with yield expressions.Neal Norwitz-3/+36
2006-06-04Patch #1346214: correctly optimize away "if 0"-style stmtsGeorg Brandl-3/+3
2006-04-15Add missing DECREF to PyErr_WriteUnraisable(). That function reportsThomas Wouters-2/+34
2006-04-15Consolidate 'leak_test1' and 'refleaks_tests', since they both test for theThomas Wouters-17/+15
2006-04-15Add missing PyObject_GC_Track call, causing *some* itertools.tee objects toThomas Wouters-17/+6
2006-04-15Changed comments to make sense now that the LazyList-basedTim Peters-4/+6
2006-04-15Fix SF#1470508: crash in generator cycle finalization. There were twoPhillip J. Eby-7/+0
2006-04-14Move the old test_generator_cycle.py which leaked but was removed into the testNeal Norwitz-0/+17
2006-03-31Fix the reference leak in test_generators, by explicitly breaking the cycleThomas Wouters-9/+19
2006-03-28In true regression-test spirit, make sure theThomas Wouters-0/+29
2006-03-25Support throw() of string exceptions.Phillip J. Eby-2/+4
2005-12-25Whitespace normalization.Tim Peters-1/+1
2005-11-27Improve test coverage. Hope the test_file changes work the same on windows.Neal Norwitz-0/+5
2005-10-22Revert previous checkin:Neal Norwitz-1/+1
2005-10-21Add comment lost from AST mergeNeal Norwitz-1/+1
2005-10-20Merge ast-branch to headJeremy Hylton-1/+1
2005-08-26Whitespace normalization (via reindent.py).Tim Peters-3/+3
2005-08-24[ 1113421 ] New tutorial tests in test_generators.pyGeorg Brandl-0/+78
2005-08-07Whitespace normalization (ran reindent.py over the whole tree).Tim Peters-10/+10
2005-08-02PEP 342 implementation. Per Guido's comments, the generator throw()Phillip J. Eby-15/+261
2004-09-13DocTestFinder._find(): for tests derived from a module __test__ global,Tim Peters-6/+6
2004-08-27Removed old "if 0:" block for leak detection; wouldn't work anymore anyway.Tim Peters-8/+1
2004-08-27Don't really need ellipsis doctests for the syntax errors, becauseTim Peters-12/+12
2004-08-27Fixed 6 failures due to doctest changes.Tim Peters-16/+16
2004-08-09Fixed doctest error (wrong prompts)Edward Loper-3/+3
2004-02-12Replace backticks with repr() or "%r"Walter Dörwald-1/+1
2002-12-30This test depends on the exact ordering produced by the WichmannHillRaymond Hettinger-3/+3
2002-08-09Add tests for weakref support for generator-iterators.Fred Drake-1/+27
2002-07-23Get rid of relative imports in all unittests. Now anything thatBarry Warsaw-1/+3
2002-07-16Whitespace normalization.Tim Peters-1/+1
2002-06-12SF bug 567538: Generator can crash the interpreter (Finn Bock).Guido van Rossum-0/+20
2002-04-03Add the 'bool' type and its values 'False' and 'True', as described inGuido van Rossum-12/+12
2002-04-01Remove some now-obsolete generator future statements.Tim Peters-2/+0
2002-03-10SF patch 499062: Minor typo in test_generators.py.Tim Peters-1/+1
2001-12-06SF bug #488514: -Qnew needs workTim Peters-6/+6
2001-09-09Teach regrtest how to pass on doctest failure msgs. This is done via aTim Peters-5/+5
2001-09-03Make dir() wordier (see the new docstring). The new behavior is a mixedTim Peters-7/+1
2001-08-16The change of type(None).__name__ from 'None' to 'NoneType' broke thisGuido van Rossum-2/+2
2001-08-15Move one of the tests into the "PEP 255" section, to reflect a change inTim Peters-12/+15