Skip to content

Commit

Permalink
tests: fix cast (str → unicode)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gallaecio committed Mar 1, 2022
1 parent ed2348d commit c5c2e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_crawl.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def test_unbounded_response(self):
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(str(l).count("Got response 200"), 1)
self.assertEqual(unicode(l).count("Got response 200"), 1)

@defer.inlineCallbacks
def test_retry_conn_lost(self):
Expand Down

0 comments on commit c5c2e2c

Please sign in to comment.