diff options
author | Jared Crapo <jared@kotfu.net> | 2017-08-23 18:23:52 -0600 |
---|---|---|
committer | Jared Crapo <jared@kotfu.net> | 2017-08-23 18:23:52 -0600 |
commit | b70c15c017219ddc4c5d3e7c9715d7bc378bd9cd (patch) | |
tree | 48589d2ee5a0ef29ce3927214faaaf4382e9c3f3 | |
parent | 41ea474441ef49cae074fe6daa405ad185c64081 (diff) | |
download | cmd2-git-b70c15c017219ddc4c5d3e7c9715d7bc378bd9cd.tar.gz |
io.StringIO requires unicode conversion on python2.7
-rw-r--r-- | tests/test_cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index 854adf20..6816e57d 100644 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -1428,7 +1428,7 @@ def test_piped_input_rawinput_true_echo_false(capsys): # as stdin def piped_input_rawinput_false(capsys, echo, command): # mock up the input - fakein = io.StringIO(command) + fakein = io.StringIO(u'{}'.format(command)) # run the cmdloop, which should pull input from stdin app = cmd2.Cmd(stdin=fakein) |