Skip to content

Commit d114ed5

Browse files
committed
Different names
1 parent cad1748 commit d114ed5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Lib/test/test_repl.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)