void () { runPythonTest(new PyUnitTestProcessWithConsoleTestTask("testRunner/env/unit/nameChanged", "test_name_changed.py") { @NotNull @Override protected PyUnitTestProcessRunner createProcessRunner() throws Exception { PyUnitTestProcessRunner runner = super.createProcessRunner(); runner.setSkipExitCodeAssertion(true); //old runner is used return runner; } @Override protected void checkTestResults(@NotNull final PyUnitTestProcessRunner runner, @NotNull final String stdout, @NotNull final String stderr, @NotNull final String all, final int exitCode) { assertEquals("Test should not lead to errors, but:" + stderr, 0, exitCode); } }); }