From 1fb1733049614bda8c3fa59c57c547319c149623 Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Mon, 30 Jan 2017 00:12:10 -0500 Subject: Fixed a couple unit tests which were failing on Python 2.7 --- tests/test_transcript.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/test_transcript.py') 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): -- cgit v1.2.1