@@ -154,29 +154,29 @@ def test_sort(self):
154154
155155class FormattedListTests (testing .TestCase ):
156156 def test_init (self ):
157- l = formatting .listing ([1 , 'two' ], separator = ':' )
158- self .assertEqual ([1 , 'two' ], list (l ))
159- self .assertEqual (':' , l .separator )
157+ listing = formatting .listing ([1 , 'two' ], separator = ':' )
158+ self .assertEqual ([1 , 'two' ], list (listing ))
159+ self .assertEqual (':' , listing .separator )
160160
161- l = formatting .listing ([])
162- self .assertEqual (',' , l .separator )
161+ listing = formatting .listing ([])
162+ self .assertEqual (',' , listing .separator )
163163
164164 def test_to_python (self ):
165- l = formatting .listing ([1 , 'two' ])
166- result = l .to_python ()
165+ listing = formatting .listing ([1 , 'two' ])
166+ result = listing .to_python ()
167167 self .assertEqual ([1 , 'two' ], result )
168168
169- l = formatting .listing (x for x in [1 , 'two' ])
170- result = l .to_python ()
169+ listing = formatting .listing (x for x in [1 , 'two' ])
170+ result = listing .to_python ()
171171 self .assertEqual ([1 , 'two' ], result )
172172
173173 def test_str (self ):
174- l = formatting .listing ([1 , 'two' ])
175- result = str (l )
174+ listing = formatting .listing ([1 , 'two' ])
175+ result = str (listing )
176176 self .assertEqual ('1,two' , result )
177177
178- l = formatting .listing ((x for x in [1 , 'two' ]), separator = ':' )
179- result = str (l )
178+ listing = formatting .listing ((x for x in [1 , 'two' ]), separator = ':' )
179+ result = str (listing )
180180 self .assertEqual ('1:two' , result )
181181
182182
0 commit comments