Move the error node checking to a rule.

This commit is contained in:
Dave Halter
2017-08-19 12:43:47 +02:00
parent 5ff33c3736
commit 820e94e03a
4 changed files with 40 additions and 15 deletions

View File

@@ -137,6 +137,7 @@ FAILING_EXAMPLES = [
'def x():\n 1\n 2',
'def x():\n 1\n 2',
'if 1:\nfoo',
'if 1: blubb\nif 1:\npass\nTrue and False',
]
GLOBAL_NONLOCAL_ERROR = [