void () { runPythonTest(new PyDebuggerTask("/debug", "test_two_threads.py") { @Override public void before() { toggleBreakpoint(getFilePath(getScriptName()), 17); setBreakpointSuspendPolicy(getProject(), 17, SuspendPolicy.THREAD); setWaitForTermination(false); } @Override public void testing() throws Exception { waitForPause(); eval("m").hasValue("42"); assertEquals("Thread1", getRunningThread()); resume(); } }); }