Fix broken encoding on text for py 3

This commit is contained in:
Kiran Koduru 2017-08-02 08:32:38 -04:00
parent 7adab61a7a
commit 12409a0cf6
1 changed files with 1 additions and 1 deletions

View File

@ -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'