@@ -174,9 +174,9 @@ def gethookrecorder(self, hook):
174174 return hookrecorder
175175
176176
177- def get_public_names (l ):
178- """Only return names from iterator l without a leading underscore."""
179- return [x for x in l if x [0 ] != "_" ]
177+ def get_public_names (values ):
178+ """Only return names from iterator values without a leading underscore."""
179+ return [x for x in values if x [0 ] != "_" ]
180180
181181
182182class ParsedCall :
@@ -250,9 +250,9 @@ def popcall(self, name):
250250 pytest .fail ("\n " .join (lines ))
251251
252252 def getcall (self , name ):
253- l = self .getcalls (name )
254- assert len (l ) == 1 , (name , l )
255- return l [0 ]
253+ values = self .getcalls (name )
254+ assert len (values ) == 1 , (name , values )
255+ return values [0 ]
256256
257257 # functionality for test reports
258258
@@ -263,7 +263,7 @@ def getreports(self,
263263 def matchreport (self , inamepart = "" ,
264264 names = "pytest_runtest_logreport pytest_collectreport" , when = None ):
265265 """ return a testreport whose dotted import path matches """
266- l = []
266+ values = []
267267 for rep in self .getreports (names = names ):
268268 try :
269269 if not when and rep .when != "call" and rep .passed :
@@ -274,14 +274,14 @@ def matchreport(self, inamepart="",
274274 if when and getattr (rep , 'when' , None ) != when :
275275 continue
276276 if not inamepart or inamepart in rep .nodeid .split ("::" ):
277- l .append (rep )
278- if not l :
277+ values .append (rep )
278+ if not values :
279279 raise ValueError ("could not find test report matching %r: "
280280 "no test reports at all!" % (inamepart ,))
281- if len (l ) > 1 :
281+ if len (values ) > 1 :
282282 raise ValueError (
283- "found 2 or more testreports matching %r: %s" % (inamepart , l ))
284- return l [0 ]
283+ "found 2 or more testreports matching %r: %s" % (inamepart , values ))
284+ return values [0 ]
285285
286286 def getfailures (self ,
287287 names = 'pytest_runtest_logreport pytest_collectreport' ):
@@ -652,8 +652,8 @@ def inline_runsource(self, source, *cmdlineargs):
652652
653653 """
654654 p = self .makepyfile (source )
655- l = list (cmdlineargs ) + [p ]
656- return self .inline_run (* l )
655+ values = list (cmdlineargs ) + [p ]
656+ return self .inline_run (* values )
657657
658658 def inline_genitems (self , * args ):
659659 """Run ``pytest.main(['--collectonly'])`` in-process.
0 commit comments