summaryrefslogtreecommitdiff
path: root/tests/test_replwrap.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_replwrap.py')
-rw-r--r--tests/test_replwrap.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_replwrap.py b/tests/test_replwrap.py
index 314786b..52293fb 100644
--- a/tests/test_replwrap.py
+++ b/tests/test_replwrap.py
@@ -63,7 +63,7 @@ class REPLWrapTestCase(unittest.TestCase):
self.assertEqual(res.strip().splitlines(), ['1 2', '3 4'])
def test_existing_spawn(self):
- child = pexpect.spawnu("bash", timeout=5, echo=False)
+ child = pexpect.spawn("bash", timeout=5, echo=False, encoding='utf-8')
repl = replwrap.REPLWrapper(child, re.compile('[$#]'),
"PS1='{0}' PS2='{1}' "
"PROMPT_COMMAND=''")
@@ -86,7 +86,7 @@ class REPLWrapTestCase(unittest.TestCase):
if platform.python_implementation() == 'PyPy':
raise unittest.SkipTest(skip_pypy)
- child = pexpect.spawnu('python', echo=False, timeout=5)
+ child = pexpect.spawn('python', echo=False, timeout=5, encoding='utf-8')
# prompt_change=None should mean no prompt change
py = replwrap.REPLWrapper(child, u">>> ", prompt_change=None,
continuation_prompt=u"... ")