mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-06 08:28:39 +00:00
[Tests] Fix UnicodeWarning for gzipped file comparison
This commit is contained in:
parent
5959a24d4c
commit
5c4cbf58c5
1 changed files with 4 additions and 1 deletions
|
@ -242,7 +242,10 @@ class DownloadFileTestCase(unittest.TestCase):
|
||||||
def test_download_with_gzip_encoding_disabled(self):
|
def test_download_with_gzip_encoding_disabled(self):
|
||||||
url = self.get_url('gzip?msg=fail')
|
url = self.get_url('gzip?msg=fail')
|
||||||
d = download_file(url, fname('gzip_encoded'), allow_compression=False)
|
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
|
return d
|
||||||
|
|
||||||
def test_page_redirect_unhandled(self):
|
def test_page_redirect_unhandled(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue