summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-07-12 22:55:42 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-07-12 22:55:42 (GMT)
commita1d545523d5805f6e826164f229d0fedcb617574 (patch)
treec3c81241ae8f13bc0ceb21f65e1ca43b5b72eba6 /Lib/test
parent3446365c37811571d1139fe07166e7bfcb6ba35c (diff)
downloadcpython-a1d545523d5805f6e826164f229d0fedcb617574.zip
cpython-a1d545523d5805f6e826164f229d0fedcb617574.tar.gz
cpython-a1d545523d5805f6e826164f229d0fedcb617574.tar.bz2
Remove the last remnants of the hacks to worm around leaks.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_generators.py15
1 files changed, 3 insertions, 12 deletions
diff --git a/Lib/test/test_generators.py b/Lib/test/test_generators.py
index 5bad79a..db6d66f 100644
--- a/Lib/test/test_generators.py
+++ b/Lib/test/test_generators.py
@@ -435,9 +435,6 @@ Subject: Re: PEP 255: Simple Generators
...
... def __str__(self):
... return self.name
-...
-... def clear(self):
-... self.__dict__.clear()
>>> names = "ABCDEFGHIJKLM"
>>> sets = [disjointSet(name) for name in names]
@@ -594,9 +591,6 @@ arguments are iterable -- a LazyList is the same as a generator to times().
... while i >= len(sofar):
... sofar.append(fetch())
... return sofar[i]
-...
-... def clear(self):
-... self.__dict__.clear()
>>> def m235():
... yield 1
@@ -1344,14 +1338,11 @@ __test__ = {"tut": tutorial_tests,
# so this works as expected in both ways of running regrtest.
def test_main():
import doctest, test_generators
- if 0:
- # Temporary block to help track down leaks. So far, the blame
- # fell mostly on doctest. Later: the only leaks remaining are
- # in fun_tests, and only if you comment out the two LazyList.clear()
- # calls.
- for i in range(10000):
+ if 0: # change to 1 to run forever (to check for leaks)
+ while 1:
doctest.master = None
doctest.testmod(test_generators)
+ print ".",
else:
doctest.testmod(test_generators)