fix tests

This commit is contained in:
Noah Levitt 2018-11-27 14:35:00 -08:00
parent f63947cfe9
commit db62402be8
2 changed files with 2 additions and 2 deletions

View File

@ -322,7 +322,7 @@ class BrozzlerWorker:
verify=False)
except requests.exceptions.ProxyError as e:
raise brozzler.ProxyError(
'proxy error fetching %s' % page.url) from e
'proxy error fetching %s' % url) from e
def _needs_browsing(self, page, ydl_fetches):
if ydl_fetches:

View File

@ -233,7 +233,7 @@ def test_proxy_down():
# raw fetch
with pytest.raises(brozzler.ProxyError):
worker._fetch_url(site, page)
worker._fetch_url(site, page.url)
# WARCPROX_WRITE_RECORD
with pytest.raises(brozzler.ProxyError):