]> granicus.if.org Git - python/commitdiff
Fix incorrect placement of sorted()
authorEzio Melotti <ezio.melotti@gmail.com>
Mon, 2 Aug 2010 04:25:50 +0000 (04:25 +0000)
committerEzio Melotti <ezio.melotti@gmail.com>
Mon, 2 Aug 2010 04:25:50 +0000 (04:25 +0000)
Lib/test/test_cgi.py

index ef0653487de23dc7d35a8669672e8c9b0f26c512..0144b972ccb4a35ace84573edd28387212d53dd0 100644 (file)
@@ -166,9 +166,9 @@ class CgiTests(unittest.TestCase):
                     self.assertEqual(sorted(sd.getlist(key)), sorted(expect_val))
                     if single_value:
                         self.assertEqual(sorted(sd.values()),
-                                         sorted(first_elts(expect.values())))
+                                         first_elts(sorted(expect.values())))
                         self.assertEqual(sorted(sd.items()),
-                                         sorted(first_second_elts(expect.items())))
+                                         first_second_elts(sorted(expect.items())))
 
     def test_weird_formcontentdict(self):
         # Test the weird FormContentDict classes