Tests: reformat test data (PY-15360)

This commit is contained in:
Elizaveta Shashkova
2018-03-14 16:45:28 +03:00
parent e4575162c2
commit 773115f8a0
2 changed files with 3 additions and 6 deletions
@@ -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);
}