Fix threads resume test: do not suspend main thread until all threads are created

This commit is contained in:
Elizaveta Shashkova
2016-08-12 14:08:37 +03:00
parent c2b30671de
commit 955e2ee174
2 changed files with 3 additions and 2 deletions
@@ -4,6 +4,7 @@ lock = RLock()
def foo():
sleep(1)
while True:
lock.acquire()
x = 12
@@ -975,8 +975,8 @@ public class PythonDebuggerTest extends PyEnvTestCase {
runPythonTest(new PyDebuggerTask("/debug", "test_two_threads_resume.py") {
@Override
public void before() throws Exception {
toggleBreakpoint(getFilePath(getScriptName()), 9);
setBreakpointSuspendPolicy(getProject(), 9, SuspendPolicy.ALL);
toggleBreakpoint(getFilePath(getScriptName()), 10);
setBreakpointSuspendPolicy(getProject(), 10, SuspendPolicy.ALL);
}
@Override