Skip to content
Permalink
Browse files

fix tests to account for scrapy/w3lib#23

  • Loading branch information
kmike authored and dangra committed Aug 8, 2014
1 parent 81344ea commit f8d366a209cf7b692f917abc2f2e892b0111ce19
Showing with 2 additions and 2 deletions.
  1. +2 −2 scrapy/tests/test_downloadermiddleware.py
@@ -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',
@@ -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',

0 comments on commit f8d366a

Please sign in to comment.
You can’t perform that action at this time.