diff options
Diffstat (limited to 'tests/test_unicode.py')
| -rw-r--r-- | tests/test_unicode.py | 9 |
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() |
