diff --git a/run_tests.py b/run_tests.py index 8e15e8b..057d356 100644 --- a/run_tests.py +++ b/run_tests.py @@ -187,6 +187,7 @@ def bla(list, /): """ check_code(source, 'A002') + @pytest.mark.skipif( sys.version_info < (3, 8), reason='This syntax is only valid in Python 3.8+', @@ -197,6 +198,7 @@ def test_lambda_posonly_argument_message(): """ check_code(source, 'A006') + def test_no_error(): source = """def bla(first):\n b = 4""" check_code(source)