summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Quast <contact@jeffquast.com>2015-09-21 13:14:08 -0700
committerJeff Quast <contact@jeffquast.com>2015-09-21 13:14:08 -0700
commit60075122b5a855a7840b44e995b422b65d7d4f58 (patch)
tree39fbb542a58fa3328107e4194c28b28346e1b719
parent26764a560f22e7fce11461b8b8ab323098ee25f1 (diff)
downloadpexpect-60075122b5a855a7840b44e995b422b65d7d4f58.tar.gz
use regex for error string match for py3.4 compat
-rw-r--r--tests/test_unicode.py2
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