summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_curses.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-120378: Fix crash caused by integer overflow in `curses` (#124555)Peter Bierma2024-10-021-0/+16
| | | | | | | | | This is actually an upstream problem in curses, and has been reported to them already: https://lists.gnu.org/archive/html/bug-ncurses/2024-09/msg00101.html This is a nice workaround in the meantime to prevent the segfault. Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-81682: Fix test failures when CPython is built without docstrings (GH-113410)Serhiy Storchaka2023-12-231-1/+3
|
* gh-106194: Rename duplicated tests in `test_curses` (#106196)Nikita Sobolev2023-06-281-4/+11
|
* gh-60436: fix curses textbox backspace/del (#103783)Aidan Melen2023-04-261-0/+71
| | | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Michael Blahay <mblahay@gmail.com>
* gh-91914: Fix test_curses on non-UTF-8 locale (GH-91919)Serhiy Storchaka2022-04-261-1/+6
|
* bpo-43988: Use check disallow instantiation helper (GH-26392)Erlend Egeberg Aasland2021-05-271-2/+3
|
* bpo-43916: Apply Py_TPFLAGS_DISALLOW_INSTANTIATION to selected types (GH-25748)Erlend Egeberg Aasland2021-04-301-2/+4
| | | | | | | | | | | | | | | | | | | | | Apply Py_TPFLAGS_DISALLOW_INSTANTIATION to the following types: * _dbm.dbm * _gdbm.gdbm * _multibytecodec.MultibyteCodec * _sre..SRE_Scanner * _thread._localdummy * _thread.lock * _winapi.Overlapped * array.arrayiterator * functools.KeyWrapper * functools._lru_list_elem * pyexpat.xmlparser * re.Match * re.Pattern * unicodedata.UCD * zlib.Compress * zlib.Decompress
* bpo-43084: Return bool instead of int from curses.window.enclose() (GH-24398)Serhiy Storchaka2021-04-051-7/+6
|
* bpo-43659: Fix test_curses on AIX (GH-25074)Michael Felt2021-03-291-0/+1
| | | | | | curses.update_lines_cols() is only defined when the curses library provides either resizeterm() or resize_term() functions which are optional and are not provided on AIX.
* bpo-43231: Correctly calculate the curses color pair limit when checking for ↵Pablo Galindo2021-02-151-1/+1
| | | | it (GH-24541)
* bpo-43231: Fix test.test_curses.TestCurses.test_init_pair when running under ↵Pablo Galindo2021-02-151-0/+7
| | | | -R (GH-24539)
* bpo-43016: Fix test_curses on platform without cursesw (GH-24405)Serhiy Storchaka2021-01-311-5/+23
|
* bpo-43016: Rewrite tests for curses (GH-24312)Serhiy Storchaka2021-01-311-215/+787
|
* bpo-42681: Fix test_curses failures related to color pairs (GH-24089)Serhiy Storchaka2021-01-051-12/+41
| | | | | | | On ncurses 6.1 pair numbers are limited by SHORT_MAX-1, even with extended color support. Improve error reporting and tests for color functions.
* bpo-42789: Enable using /dev/tty in test_curses. (GH-24085)Serhiy Storchaka2021-01-041-1/+1
| | | It was temporary disabled for debugging.
* bpo-42681: Fix range checks for color and pair numbers in curses (GH-23874)Serhiy Storchaka2021-01-031-26/+107
|
* bpo-42789: Don't skip curses tests on non-tty. (GH-24009)Serhiy Storchaka2021-01-021-38/+62
| | | | | | If __stdout__ is not attached to terminal, try to use __stderr__ if it is attached to terminal, or open the terminal device, or use regular file as terminal, but some functions will be untested in the latter case.
* bpo-36982: Add support for extended color functions in ncurses 6.1 (GH-17536)Hans Petter Jansson2020-08-041-1/+15
| | | Co-authored-by: Jeffrey Kintscher <websurfer@surf2c.net>
* bpo-40275: Use new test.support helper submodules in tests (GH-21449)Hai Shi2020-08-031-1/+2
|
* bpo-38312: Add curses.{get,set}_escdelay and curses.{get,set}_tabsize. ↵Anthony Sottile2019-10-311-0/+4
| | | | (GH-16938)
* bpo-31680: Add curses.ncurses_version. (GH-4217)Serhiy Storchaka2018-10-301-3/+19
| | | | Use curses.ncurses_version for conditionally skipping a test.
* bpo-31924: Fix test_curses on NetBSD 8. (#4228)Serhiy Storchaka2017-11-031-2/+4
|
* bpo-27666: Fixed stack corruption in curses.box() and curses.ungetmouse(). ↵Serhiy Storchaka2017-11-011-1/+8
| | | | (#4220)
* bpo-15037: Add a workaround for getkey() in curses for ncurses 5.7 and ↵Serhiy Storchaka2017-11-011-0/+3
| | | | | | earlier. (#3826) Skip a test for unget_wch()/get_wch() on OpenBSD since they are broken in ncurses 5.7.
* bpo-31919: Fix building the curses module on OpenIndiana. (#4211)Serhiy Storchaka2017-11-011-9/+13
|
* bpo-31891: Fix building the curses module on NetBSD. (#4165)Serhiy Storchaka2017-10-311-8/+24
|
* bpo-31629: Add support.SaveSignals (#4183)Victor Stinner2017-10-311-1/+4
| | | | | test_curses now saves/restores signals. On FreeBSD, the curses module sets handlers of some signals, but don't restore old handlers when the module is deinitialized.
* [security] bpo-13617: Reject embedded null characters in wchar* strings. (#2302)Serhiy Storchaka2017-06-281-1/+10
| | | | | | | Based on patch by Victor Stinner. Add private C API function _PyUnicode_AsUnicode() which is similar to PyUnicode_AsUnicode(), but checks for null characters.
* test_curses - substitute self.skip() with self.skipTest()Xavier de Gaye2017-01-061-2/+2
|
* Issue #13051: Fixed recursion errors in large or resized curses.textpad.Textbox.Serhiy Storchaka2016-12-281-0/+9
| | | | Based on patch by Tycho Andersen.
* Issue #9770: curses.ascii predicates now work correctly with negative integers.Serhiy Storchaka2016-12-281-0/+19
|
* Issue #27801: Skip test_update_lines_cols when update_lines_cols() is not ↵Berker Peksag2016-08-191-0/+1
| | | | available
* merge 3.4Benjamin Peterson2016-08-161-0/+2
|\
| * fail when negative values are passed to instr()Benjamin Peterson2016-08-161-0/+2
| |
* | merge 3.4Benjamin Peterson2016-08-141-0/+3
|\ \ | |/
| * do not allow reading negative values with getstr()Benjamin Peterson2016-08-141-0/+3
| |
* | Issue #27294: Numerical state in the repr for Tkinter event objects is nowSerhiy Storchaka2016-06-181-0/+54
| | | | | | | | represented as a compination of known flags.
* | Fixed an error in previous commit.Serhiy Storchaka2016-05-221-1/+1
| |
* | Temporary skip curses tests on non-tty (issue #27067).Serhiy Storchaka2016-05-221-0/+2
| |
* | Issue #27067: Improved curses tests.Serhiy Storchaka2016-05-211-68/+97
| |
* | Issue #23815: Fixed crashes related to directly created instances of types inSerhiy Storchaka2016-05-081-0/+4
| | | | | | | | _tkinter and curses.panel modules.
* | Issue #4254: Adds _curses.update_lines_cols() Patch by Arnon YaariSteve Dower2015-04-151-0/+7
|/
* Issue #16000: Convert test_curses to use unittestZachary Ware2014-10-171-367/+347
|
* Issue #21088: Bugfix for curses.window.addch() regression in 3.4.0.Larry Hastings2014-05-041-0/+30
| | | | In porting to Argument Clinic, the first two arguments were reversed.
* Issue #20358: Tests for curses.window.overlay and curses.window.overwriteLarry Hastings2014-01-261-2/+2
| | | | no longer specify min{row,col} > max{row,col}.
* #18113: avoid segfault if Py_XDECREF triggers code that calls ↵Andrew Kuchling2013-06-221-0/+9
| | | | | | set_panel_userptr again Problem noted & original patch by Serhiy Storchaka; I tweaked the patch a bit.
* #18113: Objects associated to a curses.panel object with set_userptr() were ↵Andrew Kuchling2013-06-151-0/+13
| | | | | | leaked. Reported by Atsuo Ishimoto.
* Issue #15785: Modify window.get_wch() API of the curses module: return aVictor Stinner2012-08-281-7/+5
| | | | | | character for most keys, and an integer for special keys, instead of always returning an integer. So it is now possible to distinguish special keys like keypad keys.
* Issue #13415: test_curses skips unencodable charactersVictor Stinner2011-11-281-1/+8
|
* Issue #13415: Help to locate curses.h when _curses module is linked to ncurseswVictor Stinner2011-11-261-1/+4
|