]> granicus.if.org Git - python/commit
Restore test tee with some modifications.
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 14 Apr 2006 06:33:24 +0000 (06:33 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 14 Apr 2006 06:33:24 +0000 (06:33 +0000)
commit621292237c2d47dabb33b37ec6db945fa1d5716e
tree101b54855400c6a672a20fcf2b5f88354ae83f6a
parentcde87504145085dc371c74d755a5084de5dd9b64
Restore test tee with some modifications.
The test case came from test_generators, not test_itertools.
Ensure there's no cyclic garbage we are counting.

This is weird because it leaks, then reaches a limit:

python.exe -i test_tee.py
>>> leak()
0
[26633 refs]
>>> leak()
0
[26658 refs]
>>> leak()
0
[26683 refs]
>>> leak()
0
[26708 refs]
>>> leak()
0
[26708 refs]
>>> leak()
0
[26708 refs]
>>> leak()
0
Lib/test/leakers/test_tee.py [new file with mode: 0644]