mirror of https://github.com/zulip/zulip.git
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:
parent
33865a3535
commit
f1850b99cf
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue