Skip to content

Commit

Permalink
Fix expected error (the exact output changed in Python 3.12)
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed Jan 27, 2024
1 parent 1c326e3 commit a888dc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/testMisc.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ def test_ScriptRunner_io(self):
def test_ScriptRunner_print_function(self):
out = StdOutCollector()
ScriptRunner("print 'hey!'", stdout=out, stderr=out)
self.assertEqual(out.lines()[-1], "SyntaxError: Missing parentheses in call to 'print'. Did you mean print('hey!')?")
target = "SyntaxError: Missing parentheses in call to 'print'. Did you mean"
self.assertEqual(out.lines()[-1][:len(target)], target)

def test_ScriptRunner_division(self):
out = StdOutCollector()
Expand Down

0 comments on commit a888dc4

Please sign in to comment.