diff --git a/test/fixtures/error_corpus/python_errors.txt b/test/fixtures/error_corpus/python_errors.txt index 1cc0ce2d..edabb510 100644 --- a/test/fixtures/error_corpus/python_errors.txt +++ b/test/fixtures/error_corpus/python_errors.txt @@ -39,6 +39,22 @@ d (expression_statement (identifier)))) (expression_statement (identifier))) +======================================================== +stray if keyword in function definition +======================================================== + +def a(): + if + +--- + +(module + (function_definition + name: (identifier) + parameters: (parameters) + (ERROR) + body: (block))) + ======================================================== incomplete if statement in function definition ======================================================== @@ -74,3 +90,22 @@ def a(): (ERROR (identifier)) body: (block (expression_statement (string))))) + +=========================================== +incomplete definition in class definition +=========================================== + +class A: + def + +b + +--- + +(module + (class_definition + name: (identifier) + (ERROR) + body: (block)) + (expression_statement + (identifier))) \ No newline at end of file