Closed
Closed
Copy link
Description
Bug report
Bug description:
While testing python3 ptests (i.e. those contained in Lib/test/) in Yocto for 3.12.5, it was noted that test_write_read_limited_history() fails if Python was configured to use libedit/editline (default) instead of readline.
With readline they pass, but due to licensing differences the former is preferred for default use. Ideally, the tests should not fail in this condition, and at minimum should be skipped (if not able to make both cases pass). We'll disable this test for now but would like to enable this test in the future if possible.
See also: #121160
CPython versions tested on:
3.12
Operating systems tested on:
Linux
Linked PRs
Reacted by Bartosz Sławecki and Gregory P. Smith
Activity
[-]Python tests fail when configured to use editline instead of readline[/-][+]Python limited history test fails when configured to use editline instead of readline[/+]python3: skip readline limited history tests
sobolevn commentedon Aug 15, 2024
I cannot reproduce on macos with
editline:python3: skip readline limited history tests
python3: skip readline limited history tests
threexc commentedon Aug 15, 2024
python3_configure.txt
This is the configure log from my latest test build, if that's helpful. There's a lot of build path info there that might be tricky to parse. Not sure if there's anything obvious in there?
threexc commentedon Aug 15, 2024
Failure log:
rossburton commentedon Sep 12, 2024
FYI, we've replicated this failure with Python 3.12.6.
python3: skip readline limited history tests
python3: skip readline limited history tests
python3: skip readline limited history tests
python3: skip readline limited history tests
python3: skip readline limited history tests
python3: skip readline limited history tests
python3: skip readline limited history tests
pepoluan commentedon Oct 29, 2024
This also happens with the
dev-lang/python-3.13.0package on Gentoo:USEflags:which resulted in the following
./configureinvocation:Edited to Add:
Specifying
-libeditfor the USE flag resulted in a different./configureinvocation:And the test (
test_readline) no longer fails.gpshead commentedon Sep 8, 2026
macOS libedit contains a patch fixing this. upstream (netbsd) does not appear to have that.
It can be worked around in cpython.
Upstream NetBSD bug https://gnats.netbsd.org/60322
pythongh-123018: Keep the libedit history file header when truncating
pythongh-123018: Keep the libedit history file header when truncating
gh-123018: Keep the libedit history file header when truncating (GH-1…
[3.14] gh-123018: Keep the libedit history file header when truncating (
Merge branch 'main' into tachyon-native-callable
pythongh-123018: Keep the libedit history file header when truncating (…
pythongh-123018: Keep the libedit history file header when truncating (…
[3.15] gh-123018: Keep the libedit history file header when truncating (