PyTestTestProcessRunner () { if (getLevelForSdk().isPy3K()) { return new PyTestTestProcessRunner("folder_no_init_py/test_test.py", 2); } else { return new PyTestTestProcessRunner(toFullPath("folder_no_init_py/test_test.py"), 2) { @Override protected void configurationCreatedAndWillLaunch(@NotNull PyTestConfiguration configuration) throws IOException { super.configurationCreatedAndWillLaunch(configuration); configuration.setWorkingDirectory(getWorkingFolderForScript()); } }; } }