Skip to content

Commit 547ad44

Browse files
bkalashnikovbogdandm
bkalashnikov
authored andcommitted
Fix module loading
1 parent 8806fbc commit 547ad44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_cli/test_script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ def test_help():
9898
def load_model(code, module_name=''):
9999
module_name = module_name or uuid.uuid4().hex
100100
module = types.ModuleType(module_name)
101-
exec(code, module.__dict__)
102101
sys.modules[module_name] = module
102+
exec(code, module.__dict__)
103103
return module
104104

105105

0 commit comments

Comments
 (0)