py3 fix testRedirect: url is bytes here

This commit is contained in:
Konstantin Lopuhin 2016-01-14 13:46:46 +03:00
parent 30c7b4e4cc
commit 0178356178
1 changed files with 1 additions and 1 deletions

View File

@ -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())