Bug 1606009 - yamllint: Fix a python issue 3 Fix the yaml test r=Callek

Differential Revision: https://phabricator.services.mozilla.com/D58263

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Sylvestre Ledru 2019-12-26 19:37:27 +00:00
Родитель 4d1924c9fb
Коммит 83fc0c5e2b
2 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -11,7 +11,7 @@ def test_basic(lint, paths):
assert len(results) == 2
assert "line too long (122 > 80 characters)'" in results[0].message
assert "line too long (122 > 80 characters)" in results[0].message
assert results[0].level == "error"
assert "bad.yml" in results[0].relpath
assert results[0].lineno == 3

Просмотреть файл

@ -22,8 +22,7 @@ Unable to install correct version of yamllint
Try to install it manually with:
$ pip install -U --require-hashes -r {}
""".strip().format(YAMLLINT_REQUIREMENTS_PATH)
YAMLLINT_FORMAT_REGEX = re.compile(b'(.*):(.*):(.*): \[(error|warning)\] (.*) \((.*)\)$')
YAMLLINT_FORMAT_REGEX = re.compile('(.*):(.*):(.*): \[(error|warning)\] (.*) \((.*)\)$')
results = []