diff options
author | dluyer <53582923+dluyer@users.noreply.github.com> | 2020-01-10 14:55:11 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-10 14:55:11 -0800 |
commit | cf821ce4e3960fda579d8dad16ebb68f37a75128 (patch) | |
tree | 0651d2a9b1b550a8dd3e16749371b69d76e617e8 | |
parent | 5daa766b6d0d0efd7e4e51c72a0b5181e58d2e4c (diff) | |
download | pexpect-git-cf821ce4e3960fda579d8dad16ebb68f37a75128.tar.gz |
Fix test_before_after_timeout for PY3.
-rwxr-xr-x | tests/test_expect.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_expect.py b/tests/test_expect.py index cf118eb..e4d023f 100755 --- a/tests/test_expect.py +++ b/tests/test_expect.py @@ -463,7 +463,7 @@ class ExpectTestCase (PexpectTestCase.PexpectTestCase): e = child.expect(['xyzzy', pexpect.TIMEOUT], searchwindowsize=10, timeout=30) self.assertEqual(e, 0) - self.assertEqual(child.before[0:5], 'BEGIN') + self.assertEqual(child.before[0:5], b'BEGIN') child.sendeof() child.expect(pexpect.EOF) |