Fix Python 2.6 compatibility of previous commit.

This commit is contained in:
Valentin Lorentz 2015-05-14 07:33:26 +00:00
parent 3f9118a1a6
commit ded7dc8e6f

View File

@ -540,13 +540,13 @@ class FormatTestCase(SupyTestCase):
'apples, oranges, and watermelon.')
def testPercentL(self):
self.assertIn(format('%L', {'apples', 'oranges', 'watermelon'}), {
self.assertIn(format('%L', set(('apples', 'oranges', 'watermelon'])), [
'apples, oranges, and watermelon',
'oranges, apples, and watermelon',
'apples, watermelon, and oranges',
'oranges, watermelon, and apples',
'watermelon, apples, and oranges',
'watermelon, oranges, and apples'})
'watermelon, oranges, and apples'])
self.assertEqual(format('%L',
(['apples', 'oranges', 'watermelon'], 'or')),