diff --git a/test/test_python_errors.py b/test/test_python_errors.py index 510f8d5..3549a47 100644 --- a/test/test_python_errors.py +++ b/test/test_python_errors.py @@ -59,8 +59,8 @@ def test_indentation_errors(code, positions): @pytest.mark.parametrize( 'code', [ # SyntaxError - '1 +', - '?', + pytest.mark.skipif('sys.version_info < (2, 6)', '1 +'), + pytest.mark.skipif('sys.version_info < (2, 6)', '?'), dedent('''\ for a in [1]: try: @@ -96,8 +96,7 @@ def test_python_exception_matches(code): ('code', 'version'), [ # SyntaxError ('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):