mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +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 @@ class TestSimpleInteract(unittest.TestCase):
|
|||
|
||||
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