yamllint/tests
Adrien Vergé e427005b52 cli: Fix TTY test failing on Python 3.14
Since I don't have Python 3.14 on my system (yet), here are the steps I
used to reproduce:

    sudo dnf install python3.14
    python3.14 -m venv /tmp/py3.14
    source /tmp/py3.14/bin/activate
    pip install yaml pathspec
    python3.14 -m unittest discover
    # or
    python3.14 -m unittest tests.test_cli.CommandLineTestCase.test_run_default_format_output_in_tty

This commit fixes that by piping *only* `sys.stdout`, not `sys.stderr`
too. I'm not sure why I wrote this code in 2016 (see commit a2c68fdf),
but the new one makes more sense to me now.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2336947
2025-01-14 08:06:39 +01:00
..
rules truthy: Adapt forbidden values based on YAML version 2024-02-06 09:45:33 +01:00
yaml-1.2-spec-examples Tests: Remove ghost character from YAML spec example 2016-02-01 23:27:49 +01:00
__init__.py style: Apply new isort (I) rules to existing code 2024-01-08 07:27:06 +01:00
common.py cli: Cleanly skip broken symlinks that are ignored 2024-02-15 09:54:11 +01:00
test_cli.py cli: Fix TTY test failing on Python 3.14 2025-01-14 08:06:39 +01:00
test_config.py cli: Restore ignoration of files passed as command-line arguments 2024-02-16 11:48:22 +01:00
test_linter.py style: Apply new isort (I) rules to existing code 2024-01-08 07:27:06 +01:00
test_module.py style: Apply new isort (I) rules to existing code 2024-01-08 07:27:06 +01:00
test_parser.py style: Apply new isort (I) rules to existing code 2024-01-08 07:27:06 +01:00
test_spec_examples.py Undo ruff changes that conflict with flake8 2024-02-02 10:05:14 +01:00
test_syntax_errors.py refactor: Remove UTF-8 headers in Python files 2022-06-09 09:40:06 +02:00
test_yamllint_directives.py refactor: Remove UTF-8 headers in Python files 2022-06-09 09:40:06 +02:00