From f399a5cd2971675c22a10e48ee9622fb3d86d41f Mon Sep 17 00:00:00 2001 From: Shadab Zafar Date: Wed, 15 Jun 2016 13:45:35 +0530 Subject: Py3: Fix tests by using byte literals --- test/pathod/test_pathod.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'test/pathod/test_pathod.py') diff --git a/test/pathod/test_pathod.py b/test/pathod/test_pathod.py index ed4ef49f..bffd33e5 100644 --- a/test/pathod/test_pathod.py +++ b/test/pathod/test_pathod.py @@ -66,7 +66,7 @@ class TestCustomCert(tutils.DaemonTests): class TestSSLCN(tutils.DaemonTests): ssl = True ssloptions = dict( - cn="foo.com" + cn=b"foo.com" ) def test_connect(self): @@ -100,7 +100,7 @@ class TestNocraft(tutils.DaemonTests): def test_nocraft(self): r = self.get(r"200:b'\xf0'") assert r.status_code == 800 - assert "Crafting disabled" in r.content + assert b"Crafting disabled" in r.content class CommonTests(tutils.DaemonTests): @@ -137,7 +137,7 @@ class CommonTests(tutils.DaemonTests): def test_static(self): rsp = self.get("200:b