PyUnitTestProcessRunner () { return new PyUnitTestProcessRunner(toFullPath("tests"), 0) { @Override protected void configurationCreatedAndWillLaunch(@NotNull PyUnitTestConfiguration configuration) throws IOException { super.configurationCreatedAndWillLaunch(configuration); configuration.setWorkingDirectory(getWorkingFolderForScript()); } }; }