зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
4d1924c9fb
Коммит
83fc0c5e2b
|
@ -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 = []
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче