summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorTodd Leonhardt <tleonhardt@gmail.com>2017-06-13 08:55:24 -0400
committerTodd Leonhardt <tleonhardt@gmail.com>2017-06-13 08:55:24 -0400
commitc56ad0f564bce6cbea7406c3e28bccea26b6dbc4 (patch)
tree147837bbba8cf205a52880d7006841c4b2653598 /cmd2.py
parentaf37a3414e232c268f9b57761670c051ab3fda32 (diff)
downloadcmd2-git-c56ad0f564bce6cbea7406c3e28bccea26b6dbc4.tar.gz
Fixes a bug which caused transcript failures to display twice
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd2.py b/cmd2.py
index 7965ea3b..66741e91 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -1895,8 +1895,7 @@ Script should contain one command per line, just like command would be typed in
sys.argv = [sys.argv[0]] # the --test argument upsets unittest.main()
testcase = TestMyAppCase()
runner = unittest.TextTestRunner()
- result = runner.run(testcase)
- result.printErrors()
+ runner.run(testcase)
def _run_commands_at_invocation(self, callargs):
"""Runs commands provided as arguments on the command line when the application is started.