From 4125e35ebdcca1f20e513aab695dfe4818e3842f Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sun, 29 Jul 2018 08:30:57 +0100 Subject: [PATCH] [Py2to3] Fix test_tranfer strings should be bytes --- deluge/tests/test_transfer.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/deluge/tests/test_transfer.py b/deluge/tests/test_transfer.py index 8940394a1..cc13cef93 100644 --- a/deluge/tests/test_transfer.py +++ b/deluge/tests/test_transfer.py @@ -125,13 +125,15 @@ class DelugeTransferProtocolTestCase(unittest.TestCase): {'keylist': [4, '5', 6.7]}, ) - self.msg1_expected_compressed_base64 = 'RAAAADF4nDvKwJjenp1aGZ+ZV+Lgxfv9PYRXXFLU'\ - 'XZyfm6oAZGTmpad3gAST8vNznAEAJhSQ' - - self.msg2_expected_compressed_base64 = 'RAAAAF14nDvGxJzemZ1aGZ+Wk59Y4uTmpKib3g3i'\ - 'l+ZlJuenpHYX5+emKhSXFGXmpadPBkmkZCaXxJdn'\ - 'lmTEl5QW5KRCdIOZhxmBhrUDuTmZxSWHWRpNnRyu'\ - 'paUBAHYlJxI=' + self.msg1_expected_compressed_base64 = ( + b'RAAAADF4nDvKwJjenp1aGZ+ZV+Lgxfv9PYRXXFLU' + b'XZyfm6oAZGTmpad3gAST8vNznAEAJhSQ' + ) + self.msg2_expected_compressed_base64 = ( + b'RAAAAF14nDvGxJzemZ1aGZ+Wk59Y4uTmpKib3g3il+ZlJuenpH' + b'YX5+emKhSXFGXmpadPBkmkZCaXxJdnlmTEl5QW5KRCdIOZhxmB' + b'hrUDuTmZxSWHWRpNnRyupaUBAHYlJxI=' + ) def test_send_one_message(self): """