mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-25 21:51:14 +08:00
Get rid of Python 3.3 artifacts
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
|
||||
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user