]> khamidou — GitHub mirrors - imapclient.git/commitdiff
Fixed Python 3 incompatibility in new gmail_search test
authorMenno Smits <menno@freshfoo.com>
Tue, 24 Sep 2013 22:16:07 +0000 (23:16 +0100)
committerMenno Smits <menno@freshfoo.com>
Tue, 24 Sep 2013 22:16:07 +0000 (23:16 +0100)
imapclient/livetest.py

index 3dc62846710ec1edc662b162cbee89938671dcd2..c02fa0281210a0a243d681114dc01fb0d27d6e78 100644 (file)
@@ -555,7 +555,7 @@ def createUidTestClass(conf, use_uid):
         def test_gmail_search(self):
             self.skip_unless_capable('X-GM-EXT-1', 'Gmail search')
 
-            random_string = ''.join(random.sample(string.letters*20, 64))
+            random_string = ''.join(random.sample(string.ascii_letters*20, 64))
             msg = 'Subject: something\r\n\r\nFoo\r\n%s\r\n' % random_string
             self.client.append(self.base_folder, msg)
             self.client.noop()    # For Gmail