PyUnitTestProcessRunner () { return new PyUnitTestProcessRunner(".", 1) { @Override protected void configurationCreatedAndWillLaunch(@NotNull PyUnitTestConfiguration configuration) throws IOException { super.configurationCreatedAndWillLaunch(configuration); // Unittest can't find tests in folders with out of init.py, even in py2k, so we set working dir explicitly configuration.setWorkingDirectory(toFullPath("tests")); } }; }