]> khamidou — GitHub mirrors - imapclient.git/commitdiff
Avoid using same test folder name twice in a row in test_folders
authorMenno Smits <menno@freshfoo.com>
Wed, 17 Apr 2013 22:22:57 +0000 (23:22 +0100)
committerMenno Smits <menno@freshfoo.com>
Wed, 17 Apr 2013 22:22:57 +0000 (23:22 +0100)
This is an attempt to avoid "Mailbox already exists" errors at folder
deletion time with Fastmail.fm.

imapclient/livetest.py

index 7df1b15dc17e75145a50fe062fba3821cb792654..074d58d2b54fa1bb069a91bd6f19e337835f2082 100644 (file)
@@ -259,19 +259,19 @@ class TestGeneral(_TestBase):
 
         folders = [
             'foobar',
-            b'foobar',
             'stuff & things',
-            b'stuff & things',
             '123',
-            b'123',
             'test & \u2622',
+            b'foobar',
+            b'stuff & things',
+            b'123',
         ]
         if not self.is_fastmail():
             # Fastmail doesn't appear like double quotes in folder names
             folders.extend([
                 '"foobar"',
-                b'"foobar"',
                 'foo "bar"',
+                b'"foobar"',
                 b'foo "bar"',
             ])