Remove all new modules imported by tests

This commit is contained in:
Hai Shi 2020-06-26 15:07:03 +08:00
parent ef19bad7d6
commit b16cd77eb1
1 changed files with 1 additions and 1 deletions

View File

@ -434,7 +434,7 @@ class Regrtest:
# Unload the newly imported modules (best effort finalization)
for module in sys.modules.keys():
if module not in save_modules and module.startswith("test."):
if module not in save_modules:
support.unload(module)
if self.ns.failfast and is_failed(result, self.ns):