void () { runPythonTest(new PyDebuggerTask("/debug", "test_two_threads.py") { @Override protected void init() { setMultiprocessDebug(true); } @Override public void before() { toggleBreakpoint(getFilePath(getScriptName()), 17); setBreakpointSuspendPolicy(getProject(), 17, SuspendPolicy.ALL); setWaitForTermination(false); } @Override public void testing() throws Exception { waitForAllThreadsPause(); eval("m").hasValue("42"); assertNull(getRunningThread()); resume(); } @NotNull @Override public Set<String> getTags() { return Collections.singleton("-iron"); } }); }