aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_repl.py
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2023-10-26 15:17:28 +0900
committerGitHub <noreply@github.com>2023-10-26 15:17:28 +0900
commit90a1b2859f99a4b07da6c46b99759444e3cefbfa (patch)
treee7ef4674c8e573906cfab0f3a3f096ac3fe4862d /Lib/test/test_repl.py
parent3f84a19e6291db682fc9a570e7612e80e2ffbbb5 (diff)
downloadcpython-90a1b2859f99a4b07da6c46b99759444e3cefbfa.tar.gz
cpython-90a1b2859f99a4b07da6c46b99759444e3cefbfa.zip
gh-67224: Show source lines in tracebacks when using the -c option when running Python (#111200)
Diffstat (limited to 'Lib/test/test_repl.py')
-rw-r--r--Lib/test/test_repl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_repl.py b/Lib/test/test_repl.py
index 2ee5117bcd7..7533376e015 100644
--- a/Lib/test/test_repl.py
+++ b/Lib/test/test_repl.py
@@ -184,7 +184,7 @@ class TestInteractiveInterpreter(unittest.TestCase):
p.stdin.write(user_input)
user_input2 = dedent("""
import linecache
- print(linecache.cache['<python-input-1>'])
+ print(linecache.cache['<stdin>-1'])
""")
p.stdin.write(user_input2)
output = kill_python(p)