From 60075122b5a855a7840b44e995b422b65d7d4f58 Mon Sep 17 00:00:00 2001 From: Jeff Quast Date: Mon, 21 Sep 2015 13:14:08 -0700 Subject: use regex for error string match for py3.4 compat --- tests/test_unicode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1