mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 17:03:12 +07:00
PY-18525 Don't include Python 2.7 and the latest Python 3 version in compatibility inspection in tests
This commit is contained in:
@@ -64,12 +64,15 @@ public class PyCompatibilityInspection extends PyInspection {
|
||||
public static final List<LanguageLevel> DEFAULT_PYTHON_VERSIONS = ImmutableList.of(LanguageLevel.PYTHON27, LanguageLevel.getLatest());
|
||||
|
||||
// Legacy DefaultJDOMExternalizer requires public fields for proper serialization
|
||||
public JDOMExternalizableStringList ourVersions = new JDOMExternalizableStringList(ContainerUtil.map(DEFAULT_PYTHON_VERSIONS, LanguageLevel::toString));
|
||||
public JDOMExternalizableStringList ourVersions = new JDOMExternalizableStringList();
|
||||
|
||||
public PyCompatibilityInspection () {
|
||||
if (ApplicationManager.getApplication().isUnitTestMode()) {
|
||||
ourVersions.addAll(UnsupportedFeaturesUtil.ALL_LANGUAGE_LEVELS);
|
||||
}
|
||||
else {
|
||||
ourVersions.addAll(ContainerUtil.map(DEFAULT_PYTHON_VERSIONS, LanguageLevel::toString));
|
||||
}
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
Reference in New Issue
Block a user