Skip to content

Commit

Permalink
fix tests to account for scrapy/w3lib#23
Browse files Browse the repository at this point in the history
  • Loading branch information
kmike committed Jul 21, 2014
1 parent f6b1e9b commit af0635e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scrapy/tests/test_downloadermiddleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def test_3xx_and_invalid_gzipped_body_must_redirect(self):
req = Request('http://example.com')
body = '<p>You are being redirected</p>'
resp = Response(req.url, status=302, body=body, headers={
'Content-Length': len(body),
'Content-Length': str(len(body)),
'Content-Type': 'text/html',
'Content-Encoding': 'gzip',
'Location': 'http://example.com/login',
Expand All @@ -85,7 +85,7 @@ def test_200_and_invalid_gzipped_body_must_fail(self):
req = Request('http://example.com')
body = '<p>You are being redirected</p>'
resp = Response(req.url, status=200, body=body, headers={
'Content-Length': len(body),
'Content-Length': str(len(body)),
'Content-Type': 'text/html',
'Content-Encoding': 'gzip',
'Location': 'http://example.com/login',
Expand Down

0 comments on commit af0635e

Please sign in to comment.