diff --git a/runtime-testsuite/test/org/antlr/v4/test/runtime/python2/BasePython2Test.java b/runtime-testsuite/test/org/antlr/v4/test/runtime/python2/BasePython2Test.java index 34c60a4ce..aa0eea7e2 100644 --- a/runtime-testsuite/test/org/antlr/v4/test/runtime/python2/BasePython2Test.java +++ b/runtime-testsuite/test/org/antlr/v4/test/runtime/python2/BasePython2Test.java @@ -38,7 +38,7 @@ public class BasePython2Test extends BasePythonTest { + " lexer = (input, output)\n" + " stream = CommonTokenStream(lexer)\n" + " stream.fill()\n" - + " [ print(t, file=output) for t in stream.tokens ]\n" + + " [ print(unicode(t), file=output) for t in stream.tokens ]\n" + (showDFA ? " print(lexer._interp.decisionToDFA[Lexer.DEFAULT_MODE].toLexerString(), end='', file=output)\n" : "") + "\n" + "if __name__ == '__main__':\n" + " main(sys.argv)\n" + "\n");