[Python-checkins] CVS: python/dist/src/Lib/test test_generators.py,1.17,1.18
Neil Schemenauer
nascheme@users.sourceforge.net
Thu, 12 Jul 2001 06:26:43 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv1353/Lib/test
Modified Files:
test_generators.py
Log Message:
Remove reference cycle breaking code. The GC now takes care of it.
Index: test_generators.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_generators.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -r1.17 -r1.18
*** test_generators.py 2001/07/04 22:11:22 1.17
--- test_generators.py 2001/07/12 13:26:41 1.18
***************
*** 485,490 ****
merged A into G
A->G B->G C->G D->G E->G F->G G->G H->G I->G J->G K->G L->G M->G
- >>> for s in sets: # XXX memory leak without this
- ... s.clear()
"""
--- 485,488 ----
***************
*** 615,619 ****
Print as many of these as you like -- *this* implementation is memory-
! efficient. XXX Except that it leaks unless you clear the dict!
>>> m235 = LazyList(m235())
--- 613,617 ----
Print as many of these as you like -- *this* implementation is memory-
! efficient.
>>> m235 = LazyList(m235())
***************
*** 626,632 ****
[400, 405, 432, 450, 480, 486, 500, 512, 540, 576, 600, 625, 640, 648, 675]
- >>> m235.clear() # XXX memory leak without this
-
Ye olde Fibonacci generator, LazyList style.
--- 624,628 ----
***************
*** 651,656 ****
>>> firstn(iter(fib), 17)
[1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584]
-
- >>> fib.clear() # XXX memory leak without this
"""
--- 647,650 ----