Try to recover from errors that are happening in subprocesses

This commit is contained in:
Dave Halter
2018-01-02 00:24:15 +01:00
parent d93b613fd9
commit 927aa2bd91
5 changed files with 54 additions and 19 deletions
@@ -66,6 +66,13 @@ def get_builtin_module_names(evaluator):
return list(map(force_unicode, sys.builtin_module_names))
def _test_raise_error(evaluator, exception_type):
"""
Raise an error to simulate certain problems for unit tests.
"""
raise exception_type
def _get_init_path(directory_path):
"""
The __init__ file can be searched in a directory. If found return it, else