Get rid of Python 3.3 artifacts

This commit is contained in:
Dave Halter
2020-01-05 23:59:38 +01:00
parent 4090c80401
commit 9ee7409d8a
6 changed files with 8 additions and 9 deletions

View File

@@ -28,4 +28,4 @@ def test_invalid_grammar_version(string):
def test_grammar_int_version():
with pytest.raises(TypeError):
load_grammar(version=3.2)
load_grammar(version=3.8)

View File

@@ -142,7 +142,7 @@ def test_yields(each_version):
def test_yield_from():
y, = get_yield_exprs('def x(): (yield from 1)', '3.3')
y, = get_yield_exprs('def x(): (yield from 1)', '3.8')
assert y.type == 'yield_expr'

View File

@@ -37,8 +37,7 @@ def test_python_exception_matches(code):
error, = errors
actual = error.message
assert actual in wanted
# Somehow in Python3.3 the SyntaxError().lineno is sometimes None
assert line_nr is None or line_nr == error.start_pos[0]
assert line_nr == error.start_pos[0]
def test_non_async_in_async():