summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_curses.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-43016: Fix test_curses on platform without cursesw (GH-24405) (GH-24408)Miss Islington (bot)2021-02-011-5/+23
| | | | | | (cherry picked from commit a1e9a1e120a11c563e166c15721169184c802f8b) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.8] bpo-43016: Rewrite tests for curses (GH-24312). (GH-24399) (GH-24401)Serhiy Storchaka2021-01-311-214/+771
| | | | | (cherry picked from commit d64fd4bb5bb4fd2e3277f39d3ad99b5a8d193e1b). (cherry picked from commit e9d4960d15c5282904cf26e469ce7cee39f634f7)
* [3.8] [3.9] bpo-42681: Fix test_curses failures related to color pairs ↵Serhiy Storchaka2021-01-051-7/+26
| | | | | | | | | | (GH-24089) (GH-24113) (GH-24116) On ncurses 6.1 pair numbers are limited by SHORT_MAX-1. Improve error reporting and tests for color functions. (cherry picked from commit 59f9b4e4509be67494f3d45489fa55523175ff69) (cherry picked from commit 9b3a53a8264d4c469a3f3d8c037e74c010be3e5c)
* [3.8] [3.9] bpo-42681: Fix range checks for color and pair numbers in curses ↵Serhiy Storchaka2021-01-041-14/+119
| | | | | | | (GH-23874). (GH-24077) (GH-24079) (cherry picked from commit 1470edd6131c29b8a09ce012cdfee3afa269d553) (cherry picked from commit b0ee2b492dbf550fbd2a63b82de0a4dc9d67f32e)
* [3.8] [3.9] bpo-42789: Don't skip curses tests on non-tty. (GH-24009) ↵Serhiy Storchaka2021-01-031-39/+63
| | | | | | | | | | | (GH-24076) (GH-24078) 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. (cherry picked from commit 607501abb488fb37e33cf9d35260ab7baefa192f) (cherry picked from commit 0303008ebceb6ac6035cd9722d1393267304171d)
* 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
|
* Issue #12567: The curses module uses Unicode functions for Unicode argumentsVictor Stinner2011-11-251-12/+31
| | | | | when it is linked to the ncurses library. It encodes also Unicode strings to the locale encoding instead of UTF-8.
* (Merge 3.2) Issue #10570: curses.putp() is now expecting a byte string, insteadVictor Stinner2011-11-031-1/+2
|\ | | | | | | | | | | | | of a Unicode string. This is an incompatible change, but putp() is used to emit terminfo commands, which are bytes strings, not Unicode strings.
| * Issue #10570: curses.putp() is now expecting a byte string, instead of aVictor Stinner2011-11-031-1/+2
| | | | | | | | | | | | | | Unicode string. This is an incompatible change, but putp() is used to emit terminfo commands, which are bytes strings, not Unicode strings.
* | (Merge 3.2) Issue #10570: curses.tigetstr() is now expecting a byte string,Victor Stinner2011-11-021-1/+6
|\ \ | |/ | | | | | | | | instead of a Unicode string. This is an incompatible change, but the previous behaviour was completly wrong.
| * Issue #10570: curses.tigetstr() is now expecting a byte string, instead of aVictor Stinner2011-11-021-1/+6
| | | | | | | | | | | | Unicode string. This is an incompatible change, but the previous behaviour was completly wrong.
* | Issue #12567: Fix curses.unget_wch() testsVictor Stinner2011-09-061-2/+4
| | | | | | | | | | | | Skip the test if the function is missing. Use U+0061 (a) instead of U+00E9 (é) because U+00E9 raises a _curses.error('unget_wch() returned ERR') on some buildbots. It's maybe because of the locale encoding.
* | Issue #12567: Add curses.unget_wch() functionVictor Stinner2011-09-051-0/+15
| | | | | | | | Push a character so the next get_wch() will return it.
* | Issue #12669: Fix test_curses so that it can run on the buildbots.Nadeem Vawda2011-08-131-3/+3
|/
* Issue #8433: Fix test_curses failure for platforms with recent versions of ↵Mark Dickinson2010-08-071-1/+1
| | | | ncurses.
* Issue #7384: If the system readline library is linked against ncurses,Stefan Krah2010-06-081-5/+0
| | | | | | | | the curses module must be linked against ncurses as well. Otherwise it is not safe to load both the readline and curses modules in an application. Thanks Thomas Dickey for answering questions about ncurses/ncursesw and readline!
* Merged revisions 78281 via svnmerge fromMark Dickinson2010-02-211-0/+6
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78281 | mark.dickinson | 2010-02-21 13:37:53 +0000 (Sun, 21 Feb 2010) | 1 line Issue #7384: skip test_curses on FreeBSD, in order to allow other buildbot tests to complete. ........
* Note that on py3k we are actually looking at sys.stdout, not sys.__stdout__.R. David Murray2009-10-191-0/+2
| | | | | | | | | | | | Merged revisions 75518 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r75518 | r.david.murray | 2009-10-19 12:01:28 -0400 (Mon, 19 Oct 2009) | 3 lines Only run test_curses when sys.__stdout__ is a tty. This eliminates the last false positive when running regrtest with -j. ........
* Merged revisions 75066 via svnmerge fromBenjamin Peterson2009-10-041-0/+5
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r75066 | andrew.kuchling | 2009-09-25 17:23:54 -0500 (Fri, 25 Sep 2009) | 4 lines #6243: fix segfault when keyname() returns a NULL pointer. Bug noted by Trundle, patched by Trundle and Jerry Chen. ........
* Clean up test_curses.Alexandre Vassalotti2009-07-221-5/+6
| | | | | By using __stdout__ directly, test_curses caused regrtest.py to duplicate the output of some test results.
* Merged revisions 73328 via svnmerge fromAmaury Forgeot d'Arc2009-06-091-0/+1
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73328 | amaury.forgeotdarc | 2009-06-10 01:37:11 +0200 (mer., 10 juin 2009) | 3 lines Missing import in test_curses, uncovered by some buildbots. (There are still a few test files that don't use the standard layout) ........