mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Tests: reformat test data (PY-15360)
This commit is contained in:
@@ -2,9 +2,5 @@ def foo(*args, **kwargs):
|
||||
print(args, kwargs)
|
||||
|
||||
|
||||
foo(1, 2, 3, *[3] < error
|
||||
descr = "Python versions < 3.5 do not allow a trailing comma after *expression" > < warning
|
||||
descr = "Python versions < 3.5 do not allow a trailing comma after *expression" >, < / warning > < / error >)
|
||||
foo(1, 2, 3, *[3], **{'d': 'd'} < error
|
||||
descr = "Python versions < 3.5 do not allow a trailing comma after **expression" > < warning
|
||||
descr = "Python versions < 3.5 do not allow a trailing comma after **expression" >, < / warning > < / error >)
|
||||
foo(1, 2, 3, *[3]<error descr="Python versions < 3.5 do not allow a trailing comma after *expression"><warning descr="Python versions < 3.5 do not allow a trailing comma after *expression">,</warning></error>)
|
||||
foo(1, 2, 3, *[3], **{'d': 'd'}<error descr="Python versions < 3.5 do not allow a trailing comma after **expression"><warning descr="Python versions < 3.5 do not allow a trailing comma after **expression">,</warning></error>)
|
||||
|
||||
@@ -201,6 +201,7 @@ public class PyCompatibilityInspectionTest extends PyInspectionTestCase {
|
||||
public void testTrailingCommaAfterStarArgs() {
|
||||
doTest(LanguageLevel.PYTHON34);
|
||||
}
|
||||
|
||||
private void doTest(@NotNull LanguageLevel level) {
|
||||
runWithLanguageLevel(level, this::doTest);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user