Pep526 fixes

Closed Bitbucket Importer requested to merge bitbucket/declined-pr-613 into branch/py3.6

Created originally on Bitbucket by alcarithemad (Colin)

Changesets for this Pull Request have not been imported, because it had been already declined on Bitbucket. Marked as closed by the import user.

This fixes the test failures in lib-python/3/test/ test_var_annot_syntax_errors and test_var_annot_basic_semantics.

They're error cases that weren't handled correctly before.

Merge request reports