mirror of
https://github.com/python/cpython.git
synced 2025-10-25 10:44:55 +00:00
gh-119180: PEP 649 compiler changes (#119361)
This commit is contained in:
parent
02c1dfff07
commit
9b8611eeea
28 changed files with 610 additions and 329 deletions
|
|
@ -105,7 +105,7 @@ def test_runsource_shows_syntax_error_for_failed_compilation(self):
|
|||
|
||||
def test_no_active_future(self):
|
||||
console = InteractiveColoredConsole()
|
||||
source = "x: int = 1; print(__annotations__)"
|
||||
source = "x: int = 1; print(__annotate__(1))"
|
||||
f = io.StringIO()
|
||||
with contextlib.redirect_stdout(f):
|
||||
result = console.runsource(source)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue