summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordluyer <53582923+dluyer@users.noreply.github.com>2020-01-10 14:55:11 -0800
committerGitHub <noreply@github.com>2020-01-10 14:55:11 -0800
commitcf821ce4e3960fda579d8dad16ebb68f37a75128 (patch)
tree0651d2a9b1b550a8dd3e16749371b69d76e617e8
parent5daa766b6d0d0efd7e4e51c72a0b5181e58d2e4c (diff)
downloadpexpect-git-cf821ce4e3960fda579d8dad16ebb68f37a75128.tar.gz
Fix test_before_after_timeout for PY3.
-rwxr-xr-xtests/test_expect.py2
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)