summaryrefslogtreecommitdiff
path: root/tests/test_unicode.py
diff options
context:
space:
mode:
authorJeff Quast <contact@jeffquast.com>2015-09-22 12:42:24 -0700
committerJeff Quast <contact@jeffquast.com>2015-09-22 12:42:24 -0700
commit3c1bc018218b86177e1cdf8e93ead035afacc421 (patch)
tree7c928ee4ad19c6c9610849f5f3b4bde7b5e8d4c4 /tests/test_unicode.py
parentae480683db601dc162ab2d02643ff84e1c3786be (diff)
parentea586fb9a545854f9b1212779653ec80f3428a2c (diff)
downloadpexpect-default-handle-sighup-pull.tar.gz
Merge remote-tracking branch 'origin/master' into default-handle-sighupdefault-handle-sighup-pull
Diffstat (limited to 'tests/test_unicode.py')
-rw-r--r--tests/test_unicode.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_unicode.py b/tests/test_unicode.py
index f342bf9..55632c3 100644
--- a/tests/test_unicode.py
+++ b/tests/test_unicode.py
@@ -173,6 +173,15 @@ class UnicodeTests(PexpectTestCase.PexpectTestCase):
# exercise,
assert child.readline() == 'input' + child.crlf
+ def test_unicode_argv(self):
+ """ Ensure a program can be executed with unicode arguments. """
+ p = pexpect.spawn(u'echo ǝpoɔıun'.format(self=self),
+ timeout=5, encoding='utf8')
+ p.expect(u'ǝpoɔıun')
+ p.expect(pexpect.EOF)
+ assert not p.isalive()
+ assert p.exitstatus == 0
+
if __name__ == '__main__':
unittest.main()