def skip_successful_exit(*args):
    """ System exit in file shouldn't kill interpreter (i.e. in `timeit`)"""
    if len(args) == 1 and args[0] in (0, None):
        pass
    else:
        raise SystemExit(*args)
 System exit in file shouldn't kill interpreter (i.e. in `timeit`)
debugger/src/pydev_run_in_console.py