mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 13:02:30 +07:00
PY-34617 Take into account sys.version_info checks when analyzing Python files
Added test for version-specific stub elements GitOrigin-RevId: d5adb86a3c93ffb797789ab2e9ba033ec113f98d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
022edab185
commit
1e871fa95f
@@ -1277,20 +1277,6 @@ public class PyStubsTest extends PyTestCase {
|
||||
return new PyVersionRange(Version.parseVersion(lowInclusive), Version.parseVersion(highExclusive));
|
||||
}
|
||||
|
||||
//private static @NotNull StubElementValidator ifPart(int major, int minor, boolean isLessThan) {
|
||||
// return stub -> {
|
||||
// assertInstanceOf(stub, PyIfPartIfStub.class);
|
||||
// assertEquals(new PyVersionCheck(new Version(major, minor, 0), isLessThan), ((PyIfPartIfStub)stub).getVersionCheck());
|
||||
// };
|
||||
//}
|
||||
//
|
||||
//private static @NotNull StubElementValidator elifPart(int major, int minor, boolean isLessThan) {
|
||||
// return stub -> {
|
||||
// assertInstanceOf(stub, PyIfPartElifStub.class);
|
||||
// assertEquals(new PyVersionCheck(new Version(major, minor, 0), isLessThan), ((PyIfPartElifStub)stub).getVersionCheck());
|
||||
// };
|
||||
//}
|
||||
|
||||
private interface StubElementValidator {
|
||||
void test(@NotNull StubElement<?> stub);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user