Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Remove all new modules imported by tests
  • Loading branch information
shihai1991 committed Jun 26, 2020
commit b16cd77eb15f848d5c4d2a0735bfb689e6a3dcd6
2 changes: 1 addition & 1 deletion Lib/test/libregrtest/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ def run_tests_sequential(self):

# 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):
Expand Down