python3: skip ptest incompatible with ptest-runner >= 2.5.0

With ptest-runner >= 2.5.0, ptests run with PYTHONUNBUFFERED="1" envvar
to unbuffer the python output (to fix AB-INT timeout issues).
A python3 test, "test_cmd_line.test_non_interactive_output_buffering",
expects buffered output and fails on unbuffered output, skip it.
See https://github.com/python/cpython/issues/128377.

Note: upstream fix also skip it on PYTHONUNBUFFERED!=0:
https://github.com/python/cpython/commit/30268b5d2fbb1a5e6c876f0cdc4cbdb5d93315e6

(From OE-Core rev: 4e337750e8031603c9678206374741e5bf035e2d)

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Paul Barker <paul@pbarker.dev>
This commit is contained in:
Yoann Congal authored and Paul Barker committed 2026-09-28 10:17:43 +01:00
1 parent 8b7ab84dea
commit 75dd1ef968
1 file changed
+6
@@ -260,6 +260,12 @@ SKIPPED_TESTS = " \
--ignore test.test_tracemalloc.TestCAPI.test_tracemalloc_track_race \
"
# With ptest-runner >= 2.5.0, ptests run with PYTHONUNBUFFERED="1" envvar.
# test_cmd_line.test_non_interactive_output_buffering expects buffered ouput,
# skip it.
# See: https://github.com/python/cpython/issues/128377
SKIPPED_TESTS += "--ignore test.test_cmd_line.CmdLineTest.test_non_interactive_output_buffering"
SKIPPED_TESTS:append:class-target:libc-musl = " \
-x test__locale \
-x test_c_locale_coercion \