void () { runPythonTest(new PyConsoleTask() { @Override public void testing() throws Exception { exec("import time"); execNoWait(""" for i in range(10000): print(i) time.sleep(0.1)"""); waitForOutput("3\n4\n5"); Assert.assertFalse(canExecuteNow()); interrupt(); waitForFinish(); waitForReady(); } @NotNull @Override public Set<String> getTags() { return Sets.newHashSet("-iron", "-jython"); } }); }