summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-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: