Remove all new modules imported by tests
This commit is contained in:
parent
ef19bad7d6
commit
b16cd77eb1
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue