This TODO is implemented now

This commit is contained in:
Alexandre Aubin 2019-08-24 15:49:25 +02:00
parent 81843b2b95
commit 2ffb413a46

View file

@ -460,9 +460,8 @@ def _hook_exec_python(path, args, env, loggers):
sys.path = [dir_] + sys.path sys.path = [dir_] + sys.path
module = import_module(name) module = import_module(name)
# TODO : We might want to check here that it's a tuple
# containing an int + a dict ?
ret = module.main(args, env, loggers) ret = module.main(args, env, loggers)
# # Assert that the return is a (int, dict) tuple
assert isinstance(ret, tuple) \ assert isinstance(ret, tuple) \
and len(ret) == 2 \ and len(ret) == 2 \
and isinstance(ret[0],int) \ and isinstance(ret[0],int) \