diff options
author | Tim Peters <tim.peters@gmail.com> | 2004-08-27 15:29:59 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2004-08-27 15:29:59 (GMT) |
commit | cca018356d3321880e2c9083d630691b5b6c2326 (patch) | |
tree | 1f8fedcfa19d96bbd39363c6b02ac483b855b1c3 /Lib/test | |
parent | aef8cfaa287304aa7827e591d9b19e8dd308fe40 (diff) | |
download | cpython-cca018356d3321880e2c9083d630691b5b6c2326.zip cpython-cca018356d3321880e2c9083d630691b5b6c2326.tar.gz cpython-cca018356d3321880e2c9083d630691b5b6c2326.tar.bz2 |
Removed old "if 0:" block for leak detection; wouldn't work anymore anyway.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_generators.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Lib/test/test_generators.py b/Lib/test/test_generators.py index 0c44634..ca6eebd 100644 --- a/Lib/test/test_generators.py +++ b/Lib/test/test_generators.py @@ -1397,15 +1397,8 @@ __test__ = {"tut": tutorial_tests, # Note that doctest and regrtest both look in sys.argv for a "-v" argument, # so this works as expected in both ways of running regrtest. def test_main(verbose=None): - import doctest from test import test_support, test_generators - if 0: # change to 1 to run forever (to check for leaks) - while 1: - doctest.master = None - test_support.run_doctest(test_generators, verbose) - print ".", - else: - test_support.run_doctest(test_generators, verbose) + test_support.run_doctest(test_generators, verbose) # This part isn't needed for regrtest, but for running the test directly. if __name__ == "__main__": |