diff options
author | Jeff Quast <contact@jeffquast.com> | 2015-09-21 13:26:21 -0700 |
---|---|---|
committer | Jeff Quast <contact@jeffquast.com> | 2015-09-21 13:26:21 -0700 |
commit | 6524c84771e03ab8a2759d66b5544ba7c14ccdb9 (patch) | |
tree | 8fdcd8022adaf3b5fe2802b3384afdc0004c78e3 | |
parent | 60075122b5a855a7840b44e995b422b65d7d4f58 (diff) | |
download | pexpect-6524c84771e03ab8a2759d66b5544ba7c14ccdb9.tar.gz |
try to match PyPy's form of float() ValueError
-rw-r--r-- | tests/test_unicode.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_unicode.py b/tests/test_unicode.py index 8657221..337028d 100644 --- a/tests/test_unicode.py +++ b/tests/test_unicode.py @@ -177,7 +177,8 @@ 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(u'could not convert string to float:.*ǝpoɔıun') + p.expect(u'(could not convert string to float:.*ǝpoɔıun' # py2.7/3.4 + u'|invalid literal for float():.*ǝpoɔıun)') # pypy !? p.expect(pexpect.EOF) assert not p.isalive() assert p.exitstatus != 0 # child process could not convert to float |