mirror of
https://github.com/davidhalter/parso.git
synced 2026-11-03 09:47:30 +08:00
Add yield issues when outside function.
This commit is contained in:
1 parent
fc1c16b966
commit
26c71a9586
2 files changed
+4
-2
No files matched your search
@@ -71,6 +71,7 @@ def test_indentation_errors(code, positions):
|
||||
'continue',
|
||||
'break',
|
||||
'return',
|
||||
'yield',
|
||||
'try: pass\nexcept: pass\nexcept X: pass',
|
||||
|
||||
# IndentationError
|
||||
@@ -95,6 +96,7 @@ def test_python_exception_matches(code):
|
||||
('code', 'version'), [
|
||||
# SyntaxError
|
||||
('async def bla():\n def x(): await bla()', '3.5'),
|
||||
('yield from', '3.5'),
|
||||
|
||||
]
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user