mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 03:55:43 +00:00
[Tests] Fix UnicodeWarning for gzipped file comparison
This commit is contained in:
parent
5959a24d4c
commit
5c4cbf58c5
@ -242,7 +242,10 @@ class DownloadFileTestCase(unittest.TestCase):
|
||||
def test_download_with_gzip_encoding_disabled(self):
|
||||
url = self.get_url('gzip?msg=fail')
|
||||
d = download_file(url, fname('gzip_encoded'), allow_compression=False)
|
||||
d.addCallback(self.assertNotContains, 'fail', file_mode='rb')
|
||||
|
||||
def cb(result):
|
||||
print(result)
|
||||
d.addCallback(self.assertNotContains, b'fail', file_mode='rb')
|
||||
return d
|
||||
|
||||
def test_page_redirect_unhandled(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user