summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-06-25 01:30:12 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-06-25 01:30:12 (GMT)
commit2106ef0222db83672315bc9864591576981c3a1f (patch)
treefcda6555fdd40cfa9d1b2c6247376a53a22dd96f /Lib
parenta2ca1ae3cad0c28feefe4c14f858cd5f1b3eccd6 (diff)
downloadcpython-2106ef0222db83672315bc9864591576981c3a1f.zip
cpython-2106ef0222db83672315bc9864591576981c3a1f.tar.gz
cpython-2106ef0222db83672315bc9864591576981c3a1f.tar.bz2
Repair indentation in comment.
Add a temporary driver to help track down remaining leak(s).
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_generators.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/Lib/test/test_generators.py b/Lib/test/test_generators.py
index 82ab01c..e0d6cfa 100644
--- a/Lib/test/test_generators.py
+++ b/Lib/test/test_generators.py
@@ -15,7 +15,7 @@ Let's try a simple generator:
>>> g.next()
2
- "Falling off the end" stops the generator:
+"Falling off the end" stops the generator:
>>> g.next()
Traceback (most recent call last):
@@ -582,7 +582,14 @@ __test__ = {"tut": tutorial_tests,
# so this works as expected in both ways of running regrtest.
def test_main():
import doctest, test_generators
- doctest.testmod(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)
# This part isn't needed for regrtest, but for running the test directly.
if __name__ == "__main__":