test-backend: Don't use monkey-patching to set formatter class.

The previous approach threw a mypy error, and was also bad code
anyway.
This commit is contained in:
Tim Abbott 2017-11-21 21:54:27 -08:00
parent 33865a3535
commit f1850b99cf
1 changed files with 2 additions and 2 deletions

View File

@ -197,8 +197,8 @@ if __name__ == "__main__":
test-backend zerver.tests.test_bugdown.BugdownTest.test_inline_youtube # run a single test
test-backend BugdownTest.test_inline_youtube # run a single test"""
parser = argparse.ArgumentParser(description=usage)
parser.formatter_class = argparse.RawTextHelpFormatter
parser = argparse.ArgumentParser(description=usage,
formatter_class=argparse.RawTextHelpFormatter)
parser.add_argument('--nonfatal-errors', action="store_false", default=True,
dest="fatal_errors", help="Continue past test failures to run all tests")