diff options
author | Jeff Quast <contact@jeffquast.com> | 2015-09-21 13:14:08 -0700 |
---|---|---|
committer | Jeff Quast <contact@jeffquast.com> | 2015-09-21 13:14:08 -0700 |
commit | 60075122b5a855a7840b44e995b422b65d7d4f58 (patch) | |
tree | 39fbb542a58fa3328107e4194c28b28346e1b719 | |
parent | 26764a560f22e7fce11461b8b8ab323098ee25f1 (diff) | |
download | pexpect-60075122b5a855a7840b44e995b422b65d7d4f58.tar.gz |
use regex for error string match for py3.4 compat
-rw-r--r-- | tests/test_unicode.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_unicode.py b/tests/test_unicode.py index 4645964..8657221 100644 --- a/tests/test_unicode.py +++ b/tests/test_unicode.py @@ -177,7 +177,7 @@ class UnicodeTests(PexpectTestCase.PexpectTestCase): """ Ensure a program can be executed with unicode arguments. """ p = pexpect.spawn(u'{self.PYTHONBIN} sleep_for.py ǝpoɔıun' .format(self=self), timeout=5, encoding='utf8') - p.expect_exact(u'could not convert string to float: ǝpoɔıun') + p.expect(u'could not convert string to float:.*ǝpoɔıun') p.expect(pexpect.EOF) assert not p.isalive() assert p.exitstatus != 0 # child process could not convert to float |