summaryrefslogtreecommitdiffstats
path: root/Lib/test/regrtest.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-05-05 14:27:39 (GMT)
committerGuido van Rossum <guido@python.org>2000-05-05 14:27:39 (GMT)
commit51931144427faa001a6db3cfc37380526be256b6 (patch)
tree42363b7079a34287246bbac6e4b4c23b6f1b84d9 /Lib/test/regrtest.py
parent706262bde0e93cc14023a76da3b0836b62e51e4d (diff)
downloadcpython-51931144427faa001a6db3cfc37380526be256b6.zip
cpython-51931144427faa001a6db3cfc37380526be256b6.tar.gz
cpython-51931144427faa001a6db3cfc37380526be256b6.tar.bz2
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.".
Diffstat (limited to 'Lib/test/regrtest.py')
-rwxr-xr-xLib/test/regrtest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index 924890a..86b3d9a 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -121,7 +121,7 @@ def main(tests=None, testdir=None):
skipped.append(test)
# Unload the newly imported modules (best effort finalization)
for module in sys.modules.keys():
- if module not in save_modules:
+ if module not in save_modules and module.startswith("test."):
test_support.unload(module)
if good and not quiet:
if not bad and not skipped and len(good) > 1: