PY-27910 Add test for builtin breakpoint and add Python 3.7 to env tests

This commit is contained in:
Elizaveta Shashkova
2018-10-24 15:21:38 +03:00
parent 7053e2d0a2
commit 4e0eb8ad53
3 changed files with 37 additions and 0 deletions

View File

@@ -104,6 +104,12 @@ envs {
"python3.6\npython3\ndjango\njinja2\npython34\npython36\npandas",
true)
createPython("py37",
"3.7.0",
[],
"python3.7",
true)
if (Os.isFamily(Os.FAMILY_UNIX)) {
createPython("pyqt_env", "3.5.4", ["pyqt5==5.10.1"], "pyqt5", true)
}

View File

@@ -0,0 +1,8 @@
def foo():
a = 1
breakpoint()
return a
foo()

View File

@@ -1452,5 +1452,28 @@ public class PythonDebuggerTest extends PyEnvTestCase {
}
});
}
@Staging
@Test
public void testBuiltinBreakpoint() {
runPythonTest(new PyDebuggerTask("/debug", "test_builtin_break.py") {
@Override
public void before() {
}
@Override
public void testing() throws Exception {
waitForPause();
eval("a").hasValue("1");
resume();
}
@NotNull
@Override
public Set<String> getTags() {
return ImmutableSet.of("python3.7");
}
});
}
}