Skip to contentSkip to conversation

python3: skip test.test_readline.TestHistoryManipulation on musl

PATCH New Ross Burton 1 participant 1 message Oct 23

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3: skip test.test_readline.TestHistoryManipulation on musl

Fixes to the editline integration have sadly introduced regressions on musl:

FAIL: test_append_limited_history (test.test_readline.TestHistoryManipulation.test_append_limited_history)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.14/test/test_readline.py", line 208, in test_append_limited_history
self.assertEqual(readline.get_history_item(1), "second line") ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: '_HiStOrY_V2_' != 'second line'
- _HiStOrY_V2_
+ second line

======================================================================
FAIL: test_write_read_append (test.test_readline.TestHistoryManipulation.test_write_read_append)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.14/test/test_readline.py", line 101, in test_write_read_append

    self.assertEqual(readline.get_current_history_length(), 3)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

AssertionError: 4 != 3

A ticket has been filed upstream so skip the tests for now.

---
 meta/recipes-devtools/python/python3_3.14.9.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta/recipes-devtools/python/python3_3.14.9.bb +5 -0
index 7cee04a0a19..683edea1d83 100644
@@ -368,6 +368,11 @@ SKIPPED_TESTS:append:libc-musl = " \
     --ignore test.test_multiprocessing_fork.test_processes.WithProcessesTestProcess.test_interrupt \
 "
 
+# https://github.com/python/cpython/issues/159424
+SKIPPED_TESTS:append:libc-musl = " \
+    --ignore test.test_readline.TestHistoryManipulation.test_append_limited_history \
+    --ignore test.test_readline.TestHistoryManipulation.test_write_read_append \
+"
 
 do_install_ptest:append () {
     sed -i -e "s|SKIPPED_TESTS=|SKIPPED_TESTS=\"${SKIPPED_TESTS}\"|" ${D}${PTEST_PATH}/run-ptest
Signature · 1 line
2.43.0