summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_cmd2.py2
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)