From cf821ce4e3960fda579d8dad16ebb68f37a75128 Mon Sep 17 00:00:00 2001 From: dluyer <53582923+dluyer@users.noreply.github.com> Date: Fri, 10 Jan 2020 14:55:11 -0800 Subject: Fix test_before_after_timeout for PY3. --- tests/test_expect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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) -- cgit v1.2.1