void () { runPythonTest(new PyPackagingTestTask() { @Override public void runTestOn(@NotNull String sdkHome, @Nullable Sdk existingSdk) throws Exception { final Sdk sdk = createTempSdk(sdkHome, SdkCreationType.EMPTY_SDK); List<PyPackage> packages = null; try { packages = PyPackageManager.getInstance(sdk).refreshAndGetPackages(false); } catch (ExecutionException ignored) { } if (packages != null) { assertTrue(packages.size() > 0); for (PyPackage pkg : packages) { assertTrue(pkg.getName().length() > 0); } } } }); }