mirror of
https://github.com/davidhalter/parso.git
synced 2026-10-01 07:23:46 +08:00
Make sure to treat async funcdefs the same way as normal funcdefs
This commit is contained in:
1 parent
52e3db4834
commit
3f7aad84f9
2 files changed
+28
-18
No files matched your search
@@ -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