mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-06 21:04:29 +08:00
Make sure to treat async funcdefs the same way as normal funcdefs
This commit is contained in:
@@ -517,7 +517,7 @@ def test_end_newline_with_decorator(differ):
|
||||
json.l''')
|
||||
|
||||
differ.initialize(code)
|
||||
module = differ.parse(code + '\n', copies=0)
|
||||
module = differ.parse(code + '\n', copies=1)
|
||||
decorated, endmarker = module.children
|
||||
assert decorated.type == 'decorated'
|
||||
decorator, func = decorated.children
|
||||
|
||||
Reference in New Issue
Block a user