fixed PY-6889 Incorrect indent on pasting class method on module-level right after the class itself

This commit is contained in:
Ekaterina Tuzova
2012-07-11 20:59:36 +04:00
parent 4775d2a6f5
commit ec5c008967
4 changed files with 18 additions and 0 deletions
@@ -0,0 +1,6 @@
def f():
a = 1
b = 2
def f():
a = 1
b = 2
@@ -0,0 +1,4 @@
def f():
a = 1
b = 2
<caret>
@@ -0,0 +1,4 @@
<selection>def f():
a = 1
b = 2
</selection>
@@ -179,6 +179,10 @@ public class PyCopyPasteTest extends PyTestCase {
doTestSingleLine();
}
public void testIndentTopLevel() { //PY-6889
doTestMultiLine();
}
private void doTest() {
String name = getTestName(false);