void () { runPythonTest(new PyDebuggerTaskTagAware("/debug", "test_code_eval_with_generator_expr.py") { @Override public void before() { toggleBreakpoint(getFilePath(getScriptName()), 8); } @Override public void testing() throws Exception { String[] expectedOutput = (""" [True] \t [True] [False] \t [False] [None] \t [None]""").split("\n"); waitForPause(); for (String line : expectedOutput) { waitForOutput(line); } consoleExec(""" TFN = [True, False, None] for q in TFN: gen = (c for c in TFN if c == q) lcomp = [c for c in TFN if c == q] print(list(gen), "\\t", list(lcomp))"""); for (String line : expectedOutput) { waitForOutput(line, 2); } consoleExec(""" def g(): print("Foo, bar, baz") def f(): g() f()"""); waitForOutput("Foo, bar, baz"); resume(); } }); }