Skip to content

Commit

Permalink
Fix pyrepl test
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra committed May 29, 2024
1 parent 7669361 commit c6a1b80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_pyrepl/test_interact.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def test_runsource_shows_syntax_error_for_failed_compilation(self):

def test_no_active_future(self):
console = InteractiveColoredConsole()
source = "if True:\n x: int = 1; print(__annotations__)"
source = "x: int = 1; print(__annotate__(1))"
f = io.StringIO()
with contextlib.redirect_stdout(f):
result = console.runsource(source)
Expand Down

0 comments on commit c6a1b80

Please sign in to comment.