From 01783561781e1620580e0f1b66f32a514ac2b960 Mon Sep 17 00:00:00 2001 From: Konstantin Lopuhin Date: Thu, 14 Jan 2016 13:46:46 +0300 Subject: [PATCH] py3 fix testRedirect: url is bytes here --- tests/test_webclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_webclient.py b/tests/test_webclient.py index fa0083d44..66f8ed4cf 100644 --- a/tests/test_webclient.py +++ b/tests/test_webclient.py @@ -220,7 +220,7 @@ class WebClientTestCase(unittest.TestCase): os.mkdir(name) FilePath(name).child("file").setContent(b"0123456789") r = static.File(name) - r.putChild(b"redirect", util.Redirect("/file")) + r.putChild(b"redirect", util.Redirect(b"/file")) r.putChild(b"wait", ForeverTakingResource()) r.putChild(b"error", ErrorResource()) r.putChild(b"nolength", NoLengthResource())