提交 12409a0c 编写于 作者: K Kiran Koduru

Fix broken encoding on text for py 3

上级 7adab61a
......@@ -437,7 +437,7 @@ class NoParseMethodSpiderTest(unittest.TestCase):
def test_undefined_parse_method(self):
spider = self.spider_class('example.com')
text = 'Random text response'
text = b'Random text'
resp = TextResponse(url="http://www.example.com/random_url", body=text)
exc_msg = 'Spider.parse callback is not defined'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册