You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yamllint/tests
Sorin Sbarnea 6f7ae97382 Fix confusing ReadError traceback
Avoids confusing tracebacks when ReadErrors exceptions are raised
from the yaml reader.

Now we do print the filename that failed to load and stop processing
in order to avoid additional exceptions.

Also adds tests to prevent future regressions.

Fixes: #261
5 years ago
..
rules Add 'forbid' configurations to the braces and brackets rules 5 years ago
yaml-1.2-spec-examples Tests: Remove ghost character from YAML spec example 9 years ago
__init__.py Tests: Run with LC_ALL=C for uniform tests 9 years ago
common.py CI: Add build environment without UTF-8 locales to travis-ci 5 years ago
test_cli.py Auto-change output format if GitHub Actions detected 5 years ago
test_config.py feat: Lint .yamllint by default 6 years ago
test_linter.py Drop support for EOL Python 2.6 6 years ago
test_module.py Drop support for EOL Python 2.6 6 years ago
test_parser.py Upgrade unit tests to use more useful asserts 6 years ago
test_spec_examples.py Remove redundant parentheses 6 years ago
test_syntax_errors.py Fix confusing ReadError traceback 5 years ago
test_yamllint_directives.py directives: Fix DOS lines messing with rule IDs 5 years ago