• Fred Drake's avatar
    · 5f71029e
    Fred Drake authored
    err_exit():  Allow the return code to be passed in, with a default of 2
        (the usual Unix return code for command-line errors).
    
    main():  Remove the try/except that caused a second err_exit() call after
        the first call to sys.exit().  The try/except also prevented the
        first sys.exit() from actually doing so (only the second, unintended
        call caused the script to exit).
    
        When the users *asks* for help (-h), use a return code of 0 since
        there was not an error that triggered the help message.
    5f71029e
testrunner.py 6.02 KB