From caa006f3275b8bdd1b26656291aa55ef6465ce61 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Fri, 22 Jul 2016 04:46:45 -0700 Subject: [PATCH] Removed unnecessary coerce to list in forms_tests. --- tests/forms_tests/tests/test_widgets.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/forms_tests/tests/test_widgets.py b/tests/forms_tests/tests/test_widgets.py index b7b228d30a..66d1cbd9b9 100644 --- a/tests/forms_tests/tests/test_widgets.py +++ b/tests/forms_tests/tests/test_widgets.py @@ -130,7 +130,7 @@ beatle J R Ringo False""") "\n".join( c.tag() for c in CheckboxSelectMultiple( attrs={'id': 'abc'}, - choices=zip(list('abc'), list('ABC')) + choices=zip('abc', 'ABC') ).subwidgets('letters', list('ac')) ), """ @@ -140,7 +140,7 @@ beatle J R Ringo False""") # Each subwidget tag does not get an ID if the widget does not have an ID specified self.assertHTMLEqual( "\n".join(c.tag() for c in CheckboxSelectMultiple( - choices=zip(list('abc'), list('ABC')), + choices=zip('abc', 'ABC'), ).subwidgets('letters', list('ac'))), """ @@ -152,7 +152,7 @@ beatle J R Ringo False""") '' % (c.choice_value, c.id_for_label) for c in CheckboxSelectMultiple( attrs={'id': 'abc'}, - choices=zip(list('abc'), list('ABC')), + choices=zip('abc', 'ABC'), ).subwidgets('letters', []) ), """