mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-67224: Show source lines in tracebacks when using the -c option when running Python (#111200)
This commit is contained in:
parent
3f84a19e62
commit
90a1b2859f
13 changed files with 104 additions and 36 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue