mirror of
https://github.com/davidhalter/parso.git
synced 2026-11-01 17:22:16 +08:00
Fix an issue with assigning to __debug__, which is essentially the same as assigning to a keyword.
This commit is contained in:
1 parent
637e557486
commit
c139ef4107
2 files changed
+7
-1
No files matched your search
@@ -81,7 +81,8 @@ def test_indentation_errors(code, positions):
|
||||
'from .__future__ import whatever',
|
||||
'def f(x=3, y): pass',
|
||||
'lambda x=3, y: x',
|
||||
#'__debug__ = 1'
|
||||
'__debug__ = 1',
|
||||
'with x() as __debug__: pass',
|
||||
# Mostly 3.6 relevant
|
||||
'[]: int',
|
||||
'[a, b]: int',
|
||||
|
||||
Reference in new issue
Block a user