void () { // We need to make sure setup.py is called using different runner runPythonTest(new PyUnitTestProcessWithConsoleTestTask("testRunner/env/unit/failFast", "setup.py") { @NotNull @Override protected PyUnitTestProcessRunner createProcessRunner() throws Exception { PyUnitTestProcessRunner runner = super.createProcessRunner(); runner.setSkipExitCodeAssertion(true); //setup.py doesn't support exit codes now return runner; } @Override protected void checkTestResults(@NotNull final PyUnitTestProcessRunner runner, @NotNull final String stdout, @NotNull final String stderr, @NotNull final String all, int exitCode) { assertThat(all) .describedAs("Wrong runner used") .contains(PythonHelper.SETUPPY.asParamString()); } }); }