Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

py3 fix testRedirect: url is bytes here

Konstantin Lopuhin01783561781e
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())