Skip to content

Commit b70c15c

Browse files
committed
io.StringIO requires unicode conversion on python2.7
1 parent 41ea474 commit b70c15c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_cmd2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1428,7 +1428,7 @@ def test_piped_input_rawinput_true_echo_false(capsys):
14281428
# as stdin
14291429
def piped_input_rawinput_false(capsys, echo, command):
14301430
# mock up the input
1431-
fakein = io.StringIO(command)
1431+
fakein = io.StringIO(u'{}'.format(command))
14321432

14331433
# run the cmdloop, which should pull input from stdin
14341434
app = cmd2.Cmd(stdin=fakein)

0 commit comments

Comments
 (0)