Fix #2789: Test for google tracker icon redirect is failing
This commit is contained in:
parent
0b17b52c9a
commit
fc6672adda
|
@ -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")
|
||||
|
|
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue