CI: better cleanup for modules in between tests

This commit is contained in:
Dima Gerasimov 2021-02-19 00:09:08 +00:00 committed by karlicoss
parent 94ace823e0
commit ddbb2e5f23
5 changed files with 41 additions and 12 deletions

View file

@ -11,6 +11,7 @@ A hook to insert user's config directory into Python's search path.
from types import ModuleType
# TODO not ideal to keep it here, but this should really be a leaf in the import tree
# TODO maybe I don't even need it anymore?
def assign_module(parent: str, name: str, module: ModuleType) -> None:
import sys
import importlib