File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ def test_fetch_in_chunks(self) -> None:
94
94
# Incorrect URL parsing
95
95
def test_url_parsing (self ) -> None :
96
96
with self .assertRaises (exceptions .DownloadError ):
97
- self .fetcher .fetch ("missing-scheme-and-hostname-in-url " )
97
+ self .fetcher .fetch ("http://invalid/ " )
98
98
99
99
# File not found error
100
100
def test_http_error (self ) -> None :
Original file line number Diff line number Diff line change @@ -316,7 +316,7 @@ def test_persist_metadata_fails(
316
316
def test_invalid_target_base_url (self ) -> None :
317
317
info = TargetFile (1 , {"sha256" : "" }, "targetpath" )
318
318
with self .assertRaises (exceptions .DownloadError ):
319
- self .updater .download_target (info , target_base_url = "invalid_url " )
319
+ self .updater .download_target (info , target_base_url = "http://invalid/ " )
320
320
321
321
def test_non_existing_target_file (self ) -> None :
322
322
info = TargetFile (1 , {"sha256" : "" }, "/non_existing_file.txt" )
You can’t perform that action at this time.
0 commit comments