From 75b467e68127bb6b8ee9f0782a3e6577201d3c83 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sat, 25 Jul 2020 02:33:24 +0200 Subject: [PATCH] Some more small Python 3 changes --- parso/cache.py | 5 ++--- test/test_python_errors.py | 5 +---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/parso/cache.py b/parso/cache.py index a878039..61ea8ca 100644 --- a/parso/cache.py +++ b/parso/cache.py @@ -62,9 +62,8 @@ _VERSION_TAG = '%s-%s%s-%s' % ( """ Short name for distinguish Python implementations and versions. -It's like `sys.implementation.cache_tag` but for Python2 -we generate something similar. See: -http://docs.python.org/3/library/sys.html#sys.implementation +It's a bit similar to `sys.implementation.cache_tag`. +See: http://docs.python.org/3/library/sys.html#sys.implementation """ diff --git a/test/test_python_errors.py b/test/test_python_errors.py index 322c1b8..00d01cc 100644 --- a/test/test_python_errors.py +++ b/test/test_python_errors.py @@ -117,10 +117,7 @@ def _get_actual_exception(code): assert False, "The piece of code should raise an exception." # SyntaxError - if wanted == 'SyntaxError: non-keyword arg after keyword arg': - # The python 3.5+ way, a bit nicer. - wanted = 'SyntaxError: positional argument follows keyword argument' - elif wanted == 'SyntaxError: assignment to keyword': + if wanted == 'SyntaxError: assignment to keyword': return [wanted, "SyntaxError: can't assign to keyword", 'SyntaxError: cannot assign to __debug__'], line_nr elif wanted == 'SyntaxError: f-string: unterminated string':