Make sure to treat async funcdefs the same way as normal funcdefs

This commit is contained in:
Dave Halter
2018-07-08 20:18:15 +02:00
parent 52e3db4834
commit 3f7aad84f9
2 changed files with 28 additions and 18 deletions

View File

@@ -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