void () { runPythonTest( new PyUnitTestLikeProcessWithConsoleTestTask<>("/testRunner/env/unit", "test_with_skips_and_errors.py", this::createTestRunner) { @Override public boolean isLanguageLevelSupported(@NotNull final LanguageLevel level) { // This test requires unittest to have decorator "test" that does not exists in 2.6 return level.compareTo(LanguageLevel.PYTHON26) > 0; } @Override protected void checkTestResults(@NotNull final T runner, @NotNull final String stdout, @NotNull final String stderr, @NotNull final String all, int exitCode) { assertEquals(4, runner.getAllTestsCount()); assertEquals(2, runner.getPassedTestsCount()); assertEquals(2, runner.getFailedTestsCount()); Assert.assertFalse("Suite is not finished", runner.getTestProxy().isInterrupted()); } }); }