From: Menno Smits Date: Mon, 10 Aug 2015 23:42:43 +0000 (+1200) Subject: Fixed test_unqouted_numeric_folder_name_parsed_as_long for Python 3 X-Git-Tag: 1.0.0~1^2~46 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=eec0867f5454c896b18a1bdeeb3d7f08196a2a5e;p=imapclient.git Fixed test_unqouted_numeric_folder_name_parsed_as_long for Python 3 --- diff --git a/imapclient/test/test_imapclient.py b/imapclient/test/test_imapclient.py index 5e3be9d..8ab6e02 100644 --- a/imapclient/test/test_imapclient.py +++ b/imapclient/test/test_imapclient.py @@ -105,8 +105,8 @@ class TestListFolders(IMAPClientTest): def test_unqouted_numeric_folder_name_parsed_as_long(self): # big enough numeric values might get parsed as longs - folder_name = str(sys.maxint + 1) - folders = self.client._proc_folder_list([b'(\\HasNoChildren) "/" %s' % folder_name]) + folder_name = str(sys.maxsize + 1) + folders = self.client._proc_folder_list([b'(\\HasNoChildren) "/" ' + folder_name.encode('ascii')]) self.assertEqual(folders, [((b'\\HasNoChildren', ), b'/', folder_name)]) def test_mixed(self):