Mark duplicated *args and **kwargs as not allowed (PY-26491)

This commit is contained in:
Semyon Proshev
2017-10-16 19:24:08 +03:00
parent b1bd6df96a
commit 44a9986bdb
8 changed files with 40 additions and 15 deletions

View File

@@ -20,7 +20,6 @@ import java.awt.*;
* @author yole
*/
public class PythonHighlightingTest extends PyTestCase {
private static final String TEST_PATH = "/highlighting/";
public void testBuiltins() {
EditorColorsScheme scheme = createTemporaryColorScheme();
@@ -362,6 +361,16 @@ public class PythonHighlightingTest extends PyTestCase {
runWithLanguageLevel(LanguageLevel.PYTHON30, this::doTest);
}
// PY-26491
public void testMultiplePositionalContainers() {
doTest(LanguageLevel.PYTHON35, true, false);
}
// PY-26491
public void testMultipleKeywordContainers() {
doTest(LanguageLevel.PYTHON35, true, false);
}
// PY-26510
public void testEmptyRaise() {
doTest(false, false);