mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-17017 PY-15051 Add a test on handling trailing block comments in formatter
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user