def main(): try: _report_startup_information() _prepare_configuration() _report_configuration() python_environments = scan_python_environments() except BadConfiguration: utility.report_error(sys.exc_info()[1]) return -2 process_python_environments(python_environments) return 0
def main(): try: _report_startup_information() _prepare_configuration() success = _run_tests_in_all_environments() except (BadConfiguration, BadEnvironment): utility.report_error(sys.exc_info()[1]) return -2 print("") if not success: print("Test failed.") return -3 print("All tests passed.") return 0
def process_python_environments(python_environments): for env in python_environments: try: process_Python_environment(env) except EnvironmentSetupError: utility.report_error(sys.exc_info()[1])