fix failing test

This commit is contained in:
Eric Vergnaud 2017-06-25 14:13:18 +08:00
parent 2e56ccfe19
commit dbff375c54
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ public class BasePython2Test extends BasePythonTest {
+ " lexer = <lexerName>(input, output)\n" + " lexer = <lexerName>(input, output)\n"
+ " stream = CommonTokenStream(lexer)\n" + " stream = CommonTokenStream(lexer)\n"
+ " stream.fill()\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" + (showDFA ? " print(lexer._interp.decisionToDFA[Lexer.DEFAULT_MODE].toLexerString(), end='', file=output)\n"
: "") + "\n" + "if __name__ == '__main__':\n" : "") + "\n" + "if __name__ == '__main__':\n"
+ " main(sys.argv)\n" + "\n"); + " main(sys.argv)\n" + "\n");