[Python-checkins] CVS: python/dist/src/Lib/test test_generators.py,1.20,1.21

Tim Peters tim_one@users.sourceforge.net
Thu, 12 Jul 2001 15:55:44 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv23886/python/dist/src/Lib/test

Modified Files:
	test_generators.py 
Log Message:
Remove the last remnants of the hacks to worm around leaks.


Index: test_generators.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_generators.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -r1.20 -r1.21
*** test_generators.py	2001/07/12 22:43:41	1.20
--- test_generators.py	2001/07/12 22:55:42	1.21
***************
*** 436,442 ****
  ...     def __str__(self):
  ...         return self.name
- ...
- ...     def clear(self):
- ...         self.__dict__.clear()
  
  >>> names = "ABCDEFGHIJKLM"
--- 436,439 ----
***************
*** 595,601 ****
  ...             sofar.append(fetch())
  ...         return sofar[i]
- ...
- ...     def clear(self):
- ...         self.__dict__.clear()
  
  >>> def m235():
--- 592,595 ----
***************
*** 1345,1356 ****
  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):
              doctest.master = None
              doctest.testmod(test_generators)
      else:
          doctest.testmod(test_generators)
--- 1339,1347 ----
  def test_main():
      import doctest, test_generators
!     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)