Fix #2789: Test for google tracker icon redirect is failing

This commit is contained in:
bendikro 2016-04-07 21:15:04 +02:00 committed by Calum Lind
parent 0b17b52c9a
commit fc6672adda
2 changed files with 1 additions and 2 deletions

View File

@ -43,7 +43,6 @@ class TrackerIconsTestCase(BaseTestCase):
return d
def test_get_google_ico_with_redirect(self):
raise SkipTest("Test broken by code changes, see ticket #2789")
# google.com redirects to www.google.com
icon = TrackerIcon(os.path.join(dirname, "google.ico"))
d = self.icons.fetch("google.com")

View File

@ -235,7 +235,7 @@ class TrackerIcons(Component):
if not url:
url = self.host_to_url(host)
log.debug("Downloading %s %s", host, url)
return download_file(url, mkstemp()[1], force_filename=True)
return download_file(url, mkstemp()[1], force_filename=True, handle_redirects=False)
def on_download_page_complete(self, page):
"""