diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-05-21 13:06:36 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-05-21 13:06:36 -0400 |
commit | 791b226666149e3074f1046fa5e51f2c7386f800 (patch) | |
tree | 39880f69fdc3c34fb6abb86f48c8d0215b396911 /tests/test_transcript.py | |
parent | 2f0dbf5bad19d96880e2ef795660db1b8f04cdc7 (diff) | |
download | cmd2-git-791b226666149e3074f1046fa5e51f2c7386f800.tar.gz |
Modified transcript testing so that the useless exception trackeback isn't printed in failure cases
Diffstat (limited to 'tests/test_transcript.py')
-rw-r--r-- | tests/test_transcript.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_transcript.py b/tests/test_transcript.py index 7a2bc38a..70c9119c 100644 --- a/tests/test_transcript.py +++ b/tests/test_transcript.py @@ -269,8 +269,8 @@ def test_transcript_failure(request, capsys): assert sys_exit_code != 0 # Check for the unittest "OK" condition for the 1 test which ran - expected_start = "F\n======================================================================\nFAIL: runTest" - expected_end = "s\n\nFAILED (failures=1)\nTests failed\n" + expected_start = "File " + expected_end = "s\n\nFAILED (failures=1)\n\n" _, err = capsys.readouterr() assert err.startswith(expected_start) assert err.endswith(expected_end) |