summaryrefslogtreecommitdiff
path: root/tests/test_transcript.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-01-30 00:12:10 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2017-01-30 00:12:10 -0500
commit1fb1733049614bda8c3fa59c57c547319c149623 (patch)
tree5cc6e87b2f4c831c9ff46f8093fb4a8b432cfd0c /tests/test_transcript.py
parentaa7ba582650f0011d4a6b6aeb20488b0e1763e39 (diff)
downloadcmd2-git-1fb1733049614bda8c3fa59c57c547319c149623.tar.gz
Fixed a couple unit tests which were failing on Python 2.7
Diffstat (limited to 'tests/test_transcript.py')
-rw-r--r--tests/test_transcript.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_transcript.py b/tests/test_transcript.py
index a05e4017..01451b95 100644
--- a/tests/test_transcript.py
+++ b/tests/test_transcript.py
@@ -155,7 +155,8 @@ Options:
-s, --shout N00B EMULATION MODE
-r REPEAT, --repeat=REPEAT
output [n] times""")
- assert _normalize(out) == expected
+ # NOTE: For some reason this extra cast to str is required for Python 2.7 but not 3.x
+ assert _normalize(str(out)) == expected
def test_optparser_nosuchoption(_cmdline_app, capsys):
@@ -172,7 +173,7 @@ Options:
-s, --shout N00B EMULATION MODE
-r REPEAT, --repeat=REPEAT
output [n] times""")
- assert _normalize(out) == expected
+ assert _normalize(str(out)) == expected
def test_comment_stripping(_cmdline_app):