Commit 2106ef02 authored by Tim Peters's avatar Tim Peters

Repair indentation in comment.

Add a temporary driver to help track down remaining leak(s).
parent a2ca1ae3
...@@ -15,7 +15,7 @@ Let's try a simple generator: ...@@ -15,7 +15,7 @@ Let's try a simple generator:
>>> g.next() >>> g.next()
2 2
"Falling off the end" stops the generator: "Falling off the end" stops the generator:
>>> g.next() >>> g.next()
Traceback (most recent call last): Traceback (most recent call last):
...@@ -582,6 +582,13 @@ __test__ = {"tut": tutorial_tests, ...@@ -582,6 +582,13 @@ __test__ = {"tut": tutorial_tests,
# so this works as expected in both ways of running regrtest. # so this works as expected in both ways of running regrtest.
def test_main(): def test_main():
import doctest, test_generators import doctest, test_generators
if 0:
# Temporary block to help track down leaks. So far, the blame
# has fallen mostly on doctest.
for i in range(1000):
doctest.master = None
doctest.testmod(test_generators)
else:
doctest.testmod(test_generators) doctest.testmod(test_generators)
# This part isn't needed for regrtest, but for running the test directly. # This part isn't needed for regrtest, but for running the test directly.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment