[Python-checkins] CVS: python/dist/src/Lib/test regrtest.py,1.15,1.16

Guido van Rossum python-dev@python.org
Fri, 5 May 2000 10:27:42 -0400 (EDT)


Update of /projects/cvsroot/python/dist/src/Lib/test
In directory eric:/projects/python/develop/guido/src/Lib/test

Modified Files:
	regrtest.py 
Log Message:
Alas, Vladimir's patch was too aggressive, and started causing really
weird errors.  (E.g. see thread "weird bug in test_winreg" in python-dev.)

Since it's actually useful to be able to re-run an individual test
after running test.autotest, we keep the unloading code, but only for
modules whose full name starts with "test.".


Index: regrtest.py
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Lib/test/regrtest.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** regrtest.py	2000/04/21 21:35:06	1.15
--- regrtest.py	2000/05/05 14:27:39	1.16
***************
*** 122,126 ****
          # Unload the newly imported modules (best effort finalization)
          for module in sys.modules.keys():
!             if module not in save_modules:
                  test_support.unload(module)
      if good and not quiet:
--- 122,126 ----
          # Unload the newly imported modules (best effort finalization)
          for module in sys.modules.keys():
!             if module not in save_modules and module.startswith("test."):
                  test_support.unload(module)
      if good and not quiet: