mirror of https://github.com/scrapy/scrapy.git
tests: unicode → to_unicode
This commit is contained in:
parent
c5c2e2c7e9
commit
efd72b08f9
|
|
@ -161,7 +161,7 @@ with multiples lines
|
|||
crawler = self.runner.create_crawler(SimpleSpider)
|
||||
with LogCapture() as l:
|
||||
yield crawler.crawl(self.mockserver.url("/raw?{0}".format(query)), mockserver=self.mockserver)
|
||||
self.assertEqual(unicode(l).count("Got response 200"), 1)
|
||||
self.assertEqual(to_unicode(l).count("Got response 200"), 1)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def test_retry_conn_lost(self):
|
||||
|
|
|
|||
Loading…
Reference in New Issue