summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-06-13 09:17:01 -0400
committerGitHub <noreply@github.com>2017-06-13 09:17:01 -0400
commit4dd457ab70eeac263ef3ad8a6642dbf4a39540b2 (patch)
tree147837bbba8cf205a52880d7006841c4b2653598 /cmd2.py
parentaf37a3414e232c268f9b57761670c051ab3fda32 (diff)
parentc56ad0f564bce6cbea7406c3e28bccea26b6dbc4 (diff)
downloadcmd2-git-4dd457ab70eeac263ef3ad8a6642dbf4a39540b2.tar.gz
Merge pull request #121 from python-cmd2/transcript_double_failures
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.