PyUnitTestProcessRunner () { // Full pass is required because it is folder return new PyUnitTestProcessRunner(toFullPath(getMyScriptName()), 2) { @Override protected void configurationCreatedAndWillLaunch(@NotNull PyUnitTestConfiguration configuration) throws IOException { super.configurationCreatedAndWillLaunch(configuration); configuration.setWorkingDirectory(null); //Unset working dir: should be set to tests automatically } }; }