From b97b6ad19bfa14eafea84d294c8cfba8acaa7e6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Verg=C3=A9?= Date: Thu, 17 Nov 2016 12:24:38 +0100 Subject: [PATCH] style(tests): Fix new flake8 errors This change fixes new errors detected by the last version of pycodestyle (2.2.0), which is a dependency of flake8: ./tests/test_spec_examples.py:51:1: E305 expected 2 blank lines after class or function definition, found 1 ./tests/test_spec_examples.py:139:1: E305 expected 2 blank lines after class or function definition, found 1 See pycodestyle changelog at 2.2.0 and https://github.com/PyCQA/pycodestyle/pull/593. --- tests/test_spec_examples.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_spec_examples.py b/tests/test_spec_examples.py index 04d6ea7..cdc2bdb 100644 --- a/tests/test_spec_examples.py +++ b/tests/test_spec_examples.py @@ -48,6 +48,7 @@ from tests.common import RuleTestCase class SpecificationTestCase(RuleTestCase): rule_id = None + conf_general = ('document-start: disable\n' 'comments: {min-spaces-from-content: 1}\n' 'braces: {min-spaces-inside: 1, max-spaces-inside: 1}\n' @@ -133,6 +134,7 @@ def _gen_test(buffer, conf): self.check(buffer, conf) return test + # The following tests are blacklisted (i.e. will not be checked against # yamllint), because pyyaml is currently not able to parse the contents # (using yaml.parse()).