summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Kluyver <takowl@gmail.com>2013-10-09 12:20:39 -0700
committerThomas Kluyver <takowl@gmail.com>2013-10-09 12:20:39 -0700
commit651d5d017861a46ab505b7d34c171dff8263b728 (patch)
tree4d0f61270e08a32ea0c56fd43c7a690c7e306d0c
parent287789e06b6579f07aa3ecdec94934ce37ce03be (diff)
downloadpexpect-mac-test-readlines.tar.gz
Fix another possible test failuremac-test-readlines
-rwxr-xr-xtests/test_run.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_run.py b/tests/test_run.py
index ce470bb..6346ced 100755
--- a/tests/test_run.py
+++ b/tests/test_run.py
@@ -84,6 +84,7 @@ class RunUnicodeFuncTestCase(RunFuncTestCase):
return True # Stop the child process
output = pexpect.runu(sys.executable + ' echo_w_prompt.py',
+ env={'PYTHONIOENCODING':'utf-8'},
events={pattern:callback})
assert isinstance(output, unicode_type), type(output)
assert '<out>'+c in output, output