From bda49dd178fee1361f3585bd7efad67883298e5a Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Mon, 1 Feb 2016 19:38:14 +0100 Subject: fix #113, make Reader.peek() work on Python 3 --- test/test_tcp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test_tcp.py') diff --git a/test/test_tcp.py b/test/test_tcp.py index a68bf1e6..20a295dd 100644 --- a/test/test_tcp.py +++ b/test/test_tcp.py @@ -723,7 +723,7 @@ class TestPeek(tservers.ServerTestBase): c.wfile.write(testval) c.wfile.flush() - assert c.rfile.peek(4) == "peek"[:4] + assert c.rfile.peek(4) == b"peek"[:4] assert c.rfile.peek(6) == testval -- cgit v1.2.3