Skip to content

Commit 6af2e6f

Browse files
committed
Don't examine for literals from test inputs
1 parent 71c4a5f commit 6af2e6f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Lib/test/test_pyrepl/test_interact.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def test_multiple_statements_fail_early(self):
5858
console = InteractiveColoredConsole()
5959
code = dedent("""\
6060
raise Exception('foobar')
61-
print('spam&eggs')
61+
print('spam', 'eggs', sep='&')
6262
""")
6363
f = io.StringIO()
6464
with contextlib.redirect_stderr(f):

Lib/test/test_repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def f():
296296

297297
class TestAsyncioREPL(unittest.TestCase):
298298
def test_multiple_statements_fail_early(self):
299-
user_input = "1 / 0; print('afterwards')"
299+
user_input = "1 / 0; print('after' + 'wards')"
300300
p = spawn_repl("-m", "asyncio")
301301
p.stdin.write(user_input)
302302
output = kill_python(p)

0 commit comments

Comments
 (0)