summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_readline.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-43172: readline now passes its tests when built against libedit (GH-24499)Gregory P. Smith2021-02-121-2/+19
| | | | | | | bpo-43172: readline now passes its tests when built against libedit. Existing irreconcilable API differences remain in readline.get_begidx and readline.get_endidx behavior based on libreadline vs libedit use. A note about that has been documented.
* bpo-40275: Use new test.support helper submodules in tests (GH-21151)Hai Shi2020-06-251-1/+3
| | | | | | | | | | | | | Use new test.support helper submodules in tests: * distutils tests * test_buffer * test_compile * test_filecmp * test_fileinput * test_readline * test_smtpnet * test_structmembers * test_tools
* Skip test_readline.test_nonascii() on C locale (#5203)Victor Stinner2018-01-161-0/+8
| | | | | bpo-29240: On FreeBSD, if the LC_CTYPE locale is "C" or "POSIX", writing and reading non-ASCII bytes into/from a TTY works, but readline or ncurses ignores non-ASCII bytes on read.
* bpo-29240: readline now ignores the UTF-8 Mode (#5145)Victor Stinner2018-01-101-2/+0
| | | | | | | | | | | | Add new fuctions ignoring the UTF-8 mode: * _Py_DecodeCurrentLocale() * _Py_EncodeCurrentLocale() * _PyUnicode_DecodeCurrentLocaleAndSize() * _PyUnicode_EncodeCurrentLocale() Modify the readline module to use these functions. Re-enable test_readline.test_nonascii().
* bpo-29240: Skip test_readline.test_nonascii() (#4968)Victor Stinner2017-12-211-0/+2
| | | | | | Skip the test which fails on FreeBSD with POSIX locale. Skip the test to fix FreeBSD buildbots, until a fix can be found, so the buildbots can catch other regressions.
* bpo-29854: Skip history-size test on older readline (GH-2621)Nir Soffer2017-07-081-0/+7
| | | | | | | | Turns out that history-size was added in readline 6.0. This explain why this tests fail on FreeBSD when using readline 5.2. We skip now the history size if readline does not support it. See https://cnswww.cns.cwru.edu/php/chet/readline/CHANGES for details.
* bpo-29854: test_readline logs versions (#2619)Victor Stinner2017-07-071-2/+18
| | | | | * test_readline logs the versions of libreadline when run in verbose mode * Add also readline._READLINE_LIBRARY_VERSION
* bpo-29854: Fix segfault in call_readline() (GH-728)Nir Soffer2017-07-071-3/+40
| | | | | | | | | | | | | If history-length is set in .inputrc, and the history file is double the history size (or more), history_get(N) returns NULL, and python segfaults. Fix that by checking for NULL return value. It seems that the root cause is incorrect handling of bigger history in readline, but Python should not segfault even if readline returns unexpected value. This issue affects only GNU readline. When using libedit emulation system history size option does not work.
* Issue #19884: Merge Readline updates from 3.5Martin Panter2016-08-271-1/+1
|\
| * Issue #19884: Avoid spurious output on OS X with Gnu ReadlineMartin Panter2016-08-271-1/+1
| | | | | | | | | | Also adjust the test condition, because enable-meta-key was only added in 6.1, not 6.0.
* | Issue #16182: Merge test_readline from 3.5Martin Panter2016-06-141-1/+1
|\ \ | |/
| * Issue #16182: One more check for set_pre_input_hook()Martin Panter2016-06-141-1/+1
| |
* | Issue #16182: Merge readline update from 3.5Martin Panter2016-06-141-7/+15
|\ \ | |/
| * Issue #16182: set_pre_input_hook() may not exist; document, and update testMartin Panter2016-06-141-7/+15
| |
* | Issue #16182: Merge test_readline from 3.5Martin Panter2016-06-141-5/+13
|\ \ | |/
| * Issue #16182: Attempted workarounds for Apple EditlineMartin Panter2016-06-141-5/+13
| |
* | Issue #16182: Merge readline locale fix from 3.5Martin Panter2016-06-141-6/+90
|\ \ | |/
| * Issue #16182: Fix readline begidx, endidx, and use locale encodingMartin Panter2016-06-141-4/+137
| | | | | | | | Based on patch by Serhiy Storchaka.
* | Issue #26870: Poll() also fails on OS X; try select()Martin Panter2016-05-151-6/+13
| | | | | | | | Also work around separate Open BSD bug with kill() of a zombie.
* | Issue #26870: Avoid using kqueue() with pseudo-terminalsMartin Panter2016-05-151-7/+7
| | | | | | | | Also force terminate the child process in case it hangs for any reason.
* | Issue #26870: Temporary debugging for OS X Snow Leopard lockupMartin Panter2016-05-151-1/+6
| |
* | Issue #26870: Close pty master in case of exceptionMartin Panter2016-05-151-2/+5
| |
* | Issue #26870: Add readline.set_auto_history(), originally by Tyler CromptonMartin Panter2016-05-151-0/+49
|/
* Issue #9517: Move script_helper to the support package.Berker Peksag2015-05-061-1/+1
| | | | Patch by Christie Wilson.
* Issue #21741: Update 147 test modules to use test discovery.Zachary Ware2015-04-131-5/+2
| | | | | | | I have compared output between pre- and post-patch runs of these tests to make sure there's nothing missing and nothing broken, on both Windows and Linux. The only differences I found were actually tests that were previously *not* run.
* Issue 22940: fixes to editline supportNed Deily2014-11-261-1/+1
|
* merge 3.4Benjamin Peterson2014-11-261-3/+3
|\
| * use skipUnlessBenjamin Peterson2014-11-261-3/+3
| |
* | only support append_history if readline has itBenjamin Peterson2014-11-261-0/+2
| |
* | add readline.append_history_file (closes #22940)Benjamin Peterson2014-11-261-1/+39
|/ | | | patch by "bru"
* Issue #22773: fix failing test with old readline versions due to issue #19884.Antoine Pitrou2014-11-041-0/+4
|
* Issue #19884: readline: Disable the meta modifier key if stdout is not aVictor Stinner2014-07-241-5/+18
| | | | | | terminal to not write the ANSI sequence "\033[1034h" into stdout. This sequence is used on some terminal (ex: TERM=xterm-256color") to enable support of 8 bit characters.
* Revert 961a15aff2a6, this is already checked in another way.Georg Brandl2012-08-111-3/+1
|
* Closes #15620: check for presence of readline.clear_history(), which is ↵Georg Brandl2012-08-111-1/+3
| | | | apparently missing on some readline versions, before calling it in the test.
* #11496: skip history test if clear_history is not available.R David Murray2011-03-141-0/+4
| | | | Patch by Natalia B. Bidart.
* Merged revisions 75711 via svnmerge fromMark Dickinson2009-10-261-2/+3
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r75711 | mark.dickinson | 2009-10-26 11:59:30 +0000 (Mon, 26 Oct 2009) | 1 line Skip readline tests if readline module is not available. ........
* Merged revisions 74970 via svnmerge fromRonald Oussoren2009-09-201-0/+42
svn+ssh://pythondev@svn.python.org/python/trunk ........ r74970 | ronald.oussoren | 2009-09-20 16:18:15 +0200 (Sun, 20 Sep 2009) | 7 lines Issue 6877: this patch makes it possible to link the readline extension to the libedit emulation of the readline API on OSX 10.5 or later. This also adds a minimal testsuite for readline to check that the history manipuation functions have the same interface with both C libraries. ........