Revision on assignment errors (#97)

* Revision on assignment expression errors

 * added rule for __debug__ (should be a keyword)
 * reviewed error messages
 * added new failing samples

* Adjustment upon Dave's review

 * rewind several changes in assignment errors
 * patched is_definition: command not found for assignment expressions
 * patched Python 2 inconsistent error messages in test_python_errors.py: command not found
This commit is contained in:
Jarry Shaw
2020-01-08 23:07:37 +01:00
committed by Dave Halter
parent 31c059fc30
commit 55531ab65b
4 changed files with 22 additions and 1 deletions
-1
View File
@@ -321,4 +321,3 @@ def test_invalid_fstrings(code, message):
def test_trailing_comma(code):
errors = _get_error_list(code)
assert not errors