mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 13:02:30 +07:00
PY-34626 Fix isMethodContext to exclude inner functions as methods
closes https://github.com/JetBrains/intellij-community/pull/2811 GitOrigin-RevId: 9268c21cf03158738ca059f8b19c803cb9c368f3
This commit is contained in:
committed by
intellij-monorepo-bot
parent
c685dbd6aa
commit
467ea6dd47
@@ -43,6 +43,26 @@ public class PyExtractMethodTest extends LightMarkedTestCase {
|
||||
fail("No exception was thrown");
|
||||
}
|
||||
|
||||
public void testInnerFunc() {
|
||||
doTest("extracted");
|
||||
}
|
||||
|
||||
public void testInnerFuncWithVar() {
|
||||
doTest("extracted");
|
||||
}
|
||||
|
||||
public void testInnerFuncWithExtVar() {
|
||||
doTest("extracted");
|
||||
}
|
||||
|
||||
public void testInnerFuncRecursive() {
|
||||
doTest("extracted");
|
||||
}
|
||||
|
||||
public void testInnerFuncCombined() {
|
||||
doTest("extracted");
|
||||
}
|
||||
|
||||
public void testParameter() {
|
||||
doTest("bar");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user