diff --git a/deluge/tests/test_tracker_icons.py b/deluge/tests/test_tracker_icons.py index 993f1b4a6..f36b7df39 100644 --- a/deluge/tests/test_tracker_icons.py +++ b/deluge/tests/test_tracker_icons.py @@ -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") diff --git a/deluge/ui/tracker_icons.py b/deluge/ui/tracker_icons.py index ef7db788c..138426e83 100644 --- a/deluge/ui/tracker_icons.py +++ b/deluge/ui/tracker_icons.py @@ -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): """