void () { Assume.assumeFalse("Only needs to run on windows", UsefulTestCase.IS_UNDER_TEAMCITY && !SystemInfo.isWindows); runPythonTest(new PyDebuggerTask("/debug", "test_winegg.py") { @Override public void before() { 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().getSdk()); if (flavor != null) { flavor.initPythonPath(Arrays.asList(egg), true, 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 Collections.singleton("-jython"); //TODO: fix that for Jython if anybody needs it } }); }