Remove some Python 3.6 references

This commit is contained in:
Dave Halter
2020-07-25 02:10:10 +02:00
parent 4f9f193747
commit 902885656d
7 changed files with 6 additions and 7 deletions

View File

@@ -34,7 +34,7 @@ FAILING_EXAMPLES = [
'lambda x=3, y: x',
'__debug__ = 1',
'with x() as __debug__: pass',
# Mostly 3.6 relevant
'[]: int',
'[a, b]: int',
'(): int',

View File

@@ -74,7 +74,7 @@ def test_invalid_token():
def test_invalid_token_in_fstr():
module = load_grammar(version='3.6').parse('f"{a + ? + b}"')
module = load_grammar(version='3.9').parse('f"{a + ? + b}"')
error_node, q, plus_b, error1, error2, endmarker = module.children
assert error_node.get_code() == 'f"{a +'
assert q.value == '?'

View File

@@ -184,7 +184,6 @@ def test_ur_literals():
check('bR""')
check('Rb""')
# Starting with Python 3.6 format strings where introduced.
check('fr""')
check('rF""')
check('f""')