Commits

Andriy Kornatskyy  committed a6e6564

Fixed compatibility issue with python3.3

  • Participants
  • Parent commits 127bdf0

Comments (0)

Files changed (2)

File src/wheezy/caching/encoding.py

         >>> mapping = {'k1': 1, 'k2': 2}
         >>> keys, mapping = encode_keys(mapping,
         ...         lambda k: str(base64_encode(k).decode('latin1')))
-        >>> keys
-        {'azE=': 'k1', 'azI=': 'k2'}
-        >>> mapping
-        {'azE=': 1, 'azI=': 2}
+        >>> sorted(keys.items())
+        [('azE=', 'k1'), ('azI=', 'k2')]
+        >>> sorted(mapping.items())
+        [('azE=', 1), ('azI=', 2)]
     """
     key_mapping = {}
     encoded_mapping = {}

File src/wheezy/caching/memory.py

             True
             >>> c.store('k2', 'v2', 100)
             True
-            >>> c.get_multi(('k1', 'k2'))
-            {'k2': 'v2', 'k1': 'v1'}
+            >>> sorted(c.get_multi(('k1', 'k2')).items())
+            [('k1', 'v1'), ('k2', 'v2')]
 
             There is item in cache that expired