Commits

Andriy Kornatskyy  committed c26f73f

Fixed compatibility issue with python3.3

  • Participants
  • Parent commits 35fc164

Comments (0)

Files changed (2)

File src/wheezy/template/ext/determined.py

 
         >>> parse_kwargs('id=item.id')
         {'id': 'item.id'}
-        >>> parse_kwargs('lang="en", id=12')
-        {'lang': '"en"', 'id': '12'}
+        >>> sorted(parse_kwargs('lang="en", id=12').items())
+        [('id', '12'), ('lang', '"en"')]
     """
     kwargs = {}
     for m in RE_KWARGS.finditer(text + ','):

File src/wheezy/template/tests/test_loader.py

         """ Tests list_names.
         """
         assert (
-            'tmpl1.html',
             'shared/master.html',
-            'shared/snippet/script.html'
+            'shared/snippet/script.html',
+            'tmpl1.html'
         ) == self.loader.list_names()
 
     def test_load_existing(self):
         """ Tests list_names.
         """
         assert (
-            'tmpl1.html',
-            'shared/master.html'
+            'shared/master.html',
+            'tmpl1.html'
         ) == self.loader.list_names()
 
     def test_load_existing(self):
         """ Tests list_names.
         """
         assert (
-            'tmpl1.html',
-            'shared/master.html'
+            'shared/master.html',
+            'tmpl1.html'
         ) == self.loader.list_names()
 
     def test_load_existing(self):