File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -301,13 +301,13 @@ def test_pythonstartup_success(self):
301301 p .stdin .write ("1/0" )
302302 output = kill_python (p )
303303
304- for chunk in (
304+ for expected in (
305305 "from pythonstartup" ,
306306 "Traceback (most recent call last):" ,
307307 'File "<stdin>", line 1, in <module>' ,
308308 "ZeroDivisionError: division by zero" ,
309309 ):
310- self .assertIn (chunk , output )
310+ self .assertIn (expected , output )
311311
312312 def test_pythonstartup_failure (self ):
313313 # case 2: error in PYTHONSTARTUP triggered by user input
@@ -320,13 +320,13 @@ def test_pythonstartup_failure(self):
320320 p .stdin .write ('foo()' )
321321 output = kill_python (p )
322322
323- for chunk in (
323+ for expected in (
324324 "Traceback (most recent call last):" ,
325325 'File "<stdin>", line 1, in <module>' ,
326326 f'File "{ env ['PYTHONSTARTUP' ]} ", line ' ,
327327 "ZeroDivisionError: division by zero" ,
328328 ):
329- self .assertIn (chunk , output )
329+ self .assertIn (expected , output )
330330
331331
332332@support .force_not_colorized_test_class
You can’t perform that action at this time.
0 commit comments