PY-17017 PY-15051 Add a test on handling trailing block comments in formatter

This commit is contained in:
Mikhail Golubev
2017-10-02 15:20:24 +03:00
parent 9c3aa66ca4
commit 1625b84e33
3 changed files with 25 additions and 0 deletions
@@ -0,0 +1,10 @@
class C:
def method(self):
def foo():
def bar():
pass
# bar
# bar
# bar
# method
# class
@@ -0,0 +1,10 @@
class C:
def method(self):
def foo():
def bar():
pass
# bar
# bar
# bar
# method
# class
@@ -852,6 +852,11 @@ public class PyFormatterTest extends PyTestCase {
doTest();
}
// PY-15051
public void testTrailingBlockCommentsIndentationPreserved() {
doTest();
}
public void testVariableAnnotations() {
runWithLanguageLevel(LanguageLevel.PYTHON36, this::doTest);
}