mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-21 03:42:00 +08:00
Skip 2 tests in Python 2.6.
This commit is contained in:
@@ -59,8 +59,8 @@ def test_indentation_errors(code, positions):
|
|||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
'code', [
|
'code', [
|
||||||
# SyntaxError
|
# SyntaxError
|
||||||
'1 +',
|
pytest.mark.skipif('sys.version_info < (2, 6)', '1 +'),
|
||||||
'?',
|
pytest.mark.skipif('sys.version_info < (2, 6)', '?'),
|
||||||
dedent('''\
|
dedent('''\
|
||||||
for a in [1]:
|
for a in [1]:
|
||||||
try:
|
try:
|
||||||
@@ -96,8 +96,7 @@ def test_python_exception_matches(code):
|
|||||||
('code', 'version'), [
|
('code', 'version'), [
|
||||||
# SyntaxError
|
# SyntaxError
|
||||||
('async def bla():\n def x(): await bla()', '3.5'),
|
('async def bla():\n def x(): await bla()', '3.5'),
|
||||||
('yield from', '3.5'),
|
('yield from []', '3.5'),
|
||||||
|
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
def test_python_exception_matches_version(code, version):
|
def test_python_exception_matches_version(code, version):
|
||||||
|
|||||||
Reference in New Issue
Block a user