Skip to content

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

fix issue with '' in python 3

omerc8ec79d95922
diff --git a/tests/test_downloadermiddleware_httpcompression.py b/tests/test_downloadermiddleware_httpcompression.py
index 9ef66ba1c..24955a515 100644
--- a/tests/test_downloadermiddleware_httpcompression.py
+++ b/tests/test_downloadermiddleware_httpcompression.py
@@ -153,4 +153,4 @@ class HttpCompressionTest(TestCase):
response = response.replace(body = None)
newresponse = self.mw.process_response(request, response, self.spider)
self.assertIs(newresponse, response)
- self.assertEquals(response.body, '')
+ self.assertEquals(response.body, b'')