summaryrefslogtreecommitdiffstats
path: root/test/test_downloader.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2023-11-27 17:57:01 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2023-11-27 17:57:01 -0500
commit2a817af4fe41289fa705bdc5ee61372333f43996 (patch)
tree544d884724e98184afc1d982f0e9fa59137ef498 /test/test_downloader.py
parent7997fa94c82f9a6db63421c0af433f325a8aa607 (diff)
New upstream version 1.26.3.upstream/1.26.3
Diffstat (limited to 'test/test_downloader.py')
-rw-r--r--test/test_downloader.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test_downloader.py b/test/test_downloader.py
index 840e078..f10465e 100644
--- a/test/test_downloader.py
+++ b/test/test_downloader.py
@@ -214,7 +214,8 @@ class TestHTTPDownloader(TestDownloaderBase):
self.downloader.minsize = 100
with self.assertLogs(self.downloader.log, "WARNING"):
success = self.downloader.download(url, pathfmt)
- self.assertFalse(success)
+ self.assertTrue(success)
+ self.assertEqual(pathfmt.temppath, "")
def test_http_filesize_max(self):
url = self.address + "/jpg"
@@ -222,7 +223,8 @@ class TestHTTPDownloader(TestDownloaderBase):
self.downloader.maxsize = 100
with self.assertLogs(self.downloader.log, "WARNING"):
success = self.downloader.download(url, pathfmt)
- self.assertFalse(success)
+ self.assertTrue(success)
+ self.assertEqual(pathfmt.temppath, "")
class TestTextDownloader(TestDownloaderBase):