mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
PY-27910 Add test for builtin breakpoint and add Python 3.7 to env tests
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
8
python/testData/debug/test_builtin_break.py
Normal file
8
python/testData/debug/test_builtin_break.py
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
def foo():
|
||||
a = 1
|
||||
breakpoint()
|
||||
return a
|
||||
|
||||
|
||||
foo()
|
||||
@@ -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");
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user