mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-06 08:28:39 +00:00
Fix #2789: Test for google tracker icon redirect is failing
This commit is contained in:
parent
0b17b52c9a
commit
fc6672adda
2 changed files with 1 additions and 2 deletions
|
@ -43,7 +43,6 @@ class TrackerIconsTestCase(BaseTestCase):
|
||||||
return d
|
return d
|
||||||
|
|
||||||
def test_get_google_ico_with_redirect(self):
|
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
|
# google.com redirects to www.google.com
|
||||||
icon = TrackerIcon(os.path.join(dirname, "google.ico"))
|
icon = TrackerIcon(os.path.join(dirname, "google.ico"))
|
||||||
d = self.icons.fetch("google.com")
|
d = self.icons.fetch("google.com")
|
||||||
|
|
|
@ -235,7 +235,7 @@ class TrackerIcons(Component):
|
||||||
if not url:
|
if not url:
|
||||||
url = self.host_to_url(host)
|
url = self.host_to_url(host)
|
||||||
log.debug("Downloading %s %s", host, url)
|
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):
|
def on_download_page_complete(self, page):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue