mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
--test for windows egg breakpoints
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
from eggxample import MIXED_case, lower_case
|
||||
|
||||
x = lower_case.add(7, 9)
|
||||
print(x)
|
||||
|
||||
x = MIXED_case.add(7, 10)
|
||||
print(x)
|
||||
|
||||
Binary file not shown.
@@ -539,6 +539,50 @@ public class PythonDebuggerTest extends PyEnvTestCase {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
public void testWinEggDebug() throws Exception {
|
||||
if (!SystemInfo.isWindows)
|
||||
{
|
||||
return; // Only needs to run on windows
|
||||
}
|
||||
runPythonTest(new PyDebuggerTask("/debug", "test_winegg.py") {
|
||||
@Override
|
||||
public void before() throws Exception {
|
||||
String egg = getFilePath("wintestegg-0.1.egg");
|
||||
toggleBreakpointInEgg(egg, "eggxample/lower_case.py", 2);
|
||||
toggleBreakpointInEgg(egg, "eggxample/MIXED_case.py", 2);
|
||||
|
||||
PythonSdkFlavor flavor = PythonSdkFlavor.getFlavor(getRunConfiguration().getSdkHome());
|
||||
if (flavor != null) {
|
||||
flavor.initPythonPath(Lists.newArrayList(egg), getRunConfiguration().getEnvs());
|
||||
}
|
||||
else {
|
||||
getRunConfiguration().getEnvs().put("PYTHONPATH", egg);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void testing() throws Exception {
|
||||
waitForPause();
|
||||
eval("ret").hasValue("16");
|
||||
resume();
|
||||
|
||||
waitForPause();
|
||||
eval("ret").hasValue("17");
|
||||
resume();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public Set<String> getTags() {
|
||||
return ImmutableSet.of("-jython"); //TODO: fix that for Jython if anybody needs it
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
public void testStepOverConditionalBreakpoint() throws Exception {
|
||||
runPythonTest(new PyDebuggerTask("/debug", "test_stepOverCondition.py") {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user