diff --git a/python/testData/psi/WithStatement2.py b/python/testData/psi/WithStatement2.py index b2a91fa28608..bf22b3a7b17b 100644 --- a/python/testData/psi/WithStatement2.py +++ b/python/testData/psi/WithStatement2.py @@ -1,8 +1,8 @@ # with = 1 # legal identifier # with = 1 with = 1 -# from __future__ import with_statement, nested_scopes -from __future__ import with_statement, nested_scopes +# from __future__ import nested_scopes, with_statement +from __future__ import nested_scopes, with_statement # with x.y(z)[t] as y: pass with x.y(z)[t] as y: pass # with = 1 # now illegal diff --git a/python/testData/psi/WithStatement2.txt b/python/testData/psi/WithStatement2.txt index 826c7fe96d15..19489c4f4e2e 100644 --- a/python/testData/psi/WithStatement2.txt +++ b/python/testData/psi/WithStatement2.txt @@ -12,7 +12,7 @@ PyFile:WithStatement2.py PyNumericLiteralExpression PsiElement(Py:INTEGER_LITERAL)('1') PsiWhiteSpace('\n') - PsiComment(Py:END_OF_LINE_COMMENT)('# from __future__ import with_statement, nested_scopes') + PsiComment(Py:END_OF_LINE_COMMENT)('# from __future__ import nested_scopes, with_statement') PsiWhiteSpace('\n') PyFromImportStatement PsiElement(Py:FROM_KEYWORD)('from') @@ -23,13 +23,13 @@ PyFile:WithStatement2.py PsiElement(Py:IMPORT_KEYWORD)('import') PsiWhiteSpace(' ') PyImportElement - PyReferenceExpression: with_statement - PsiElement(Py:IDENTIFIER)('with_statement') + PyReferenceExpression: nested_scopes + PsiElement(Py:IDENTIFIER)('nested_scopes') PsiElement(Py:COMMA)(',') PsiWhiteSpace(' ') PyImportElement - PyReferenceExpression: nested_scopes - PsiElement(Py:IDENTIFIER)('nested_scopes') + PyReferenceExpression: with_statement + PsiElement(Py:IDENTIFIER)('with_statement') PsiWhiteSpace('\n') PsiComment(Py:END_OF_LINE_COMMENT)('# with x.y(z)[t] as y: pass') PsiWhiteSpace('\n')