Created by: liym27
PR types
Bug fixes
PR changes
Others
Describe
Fix test_origin_info to be compatible with PY3.8, because ast module is different in PY3.8
There are differences in ast_node.lineno between PY3.8+ and PY3.8-. If the first gast.FunctionDef has decorator, the lineno of gast.FunctionDef is differs.
- PY3.8- its lineno equals to the lineno of the first decorator node, which is not right.
- PY3.8 and PY3.8+ its lineno is the actual lineno, which is right.