Skip to content

Commit 2106ef0

Browse files
committed
Repair indentation in comment.
Add a temporary driver to help track down remaining leak(s).
1 parent a2ca1ae commit 2106ef0

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Lib/test/test_generators.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
>>> g.next()
1616
2
1717
18-
"Falling off the end" stops the generator:
18+
"Falling off the end" stops the generator:
1919
2020
>>> g.next()
2121
Traceback (most recent call last):
@@ -582,7 +582,14 @@
582582
# so this works as expected in both ways of running regrtest.
583583
def test_main():
584584
import doctest, test_generators
585-
doctest.testmod(test_generators)
585+
if 0:
586+
# Temporary block to help track down leaks. So far, the blame
587+
# has fallen mostly on doctest.
588+
for i in range(1000):
589+
doctest.master = None
590+
doctest.testmod(test_generators)
591+
else:
592+
doctest.testmod(test_generators)
586593

587594
# This part isn't needed for regrtest, but for running the test directly.
588595
if __name__ == "__main__":

0 commit comments

Comments
 (0)