PY-20682 Fixed: await something() as function argument is not recognized by syntax analyzer

Copy `async` flag in ParsingScope.withSuite
This commit is contained in:
Semyon Proshev
2016-12-02 13:54:24 +03:00
parent a498b76710
commit 2174c9b258
4 changed files with 71 additions and 0 deletions
@@ -534,6 +534,11 @@ public class PythonParsingTest extends ParsingTestCase {
doTest(LanguageLevel.PYTHON36);
}
// PY-20682
public void testAwaitOnTheSameLineAsFor() {
doTest(LanguageLevel.PYTHON35);
}
public void doTest(LanguageLevel languageLevel) {
LanguageLevel prev = myLanguageLevel;
myLanguageLevel = languageLevel;