summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_curses.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* 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) ........
* Merged revisions 70734,70775,70856,70874,70876-70877 via svnmergeR. David Murray2009-03-311-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ........ r70734 | r.david.murray | 2009-03-30 15:04:00 -0400 (Mon, 30 Mar 2009) | 7 lines Add import_function method to test.test_support, and modify a number of tests that expect to be skipped if imports fail or functions don't exist to use import_function and import_module. The ultimate goal is to change regrtest to not skip automatically on ImportError. Checking in now to make sure the buldbots don't show any errors on platforms I can't direct test on. ........ r70775 | r.david.murray | 2009-03-30 19:05:48 -0400 (Mon, 30 Mar 2009) | 4 lines Change more tests to use import_module for the modules that should cause tests to be skipped. Also rename import_function to the more descriptive get_attribute and add a docstring. ........ r70856 | r.david.murray | 2009-03-31 14:32:17 -0400 (Tue, 31 Mar 2009) | 7 lines A few more test skips via import_module, and change import_module to return the error message produced by importlib, so that if an import in the package whose import is being wrapped is what failed the skip message will contain the name of that module instead of the name of the wrapped module. Also fixed formatting of some previous comments. ........ r70874 | r.david.murray | 2009-03-31 15:33:15 -0400 (Tue, 31 Mar 2009) | 5 lines Improve test_support.import_module docstring, remove deprecated flag from get_attribute since it isn't likely to do anything useful. ........ r70876 | r.david.murray | 2009-03-31 15:49:15 -0400 (Tue, 31 Mar 2009) | 4 lines Remove the regrtest check that turns any ImportError into a skipped test. Hopefully all modules whose imports legitimately result in a skipped test have been properly wrapped by the previous commits. ........ r70877 | r.david.murray | 2009-03-31 15:57:24 -0400 (Tue, 31 Mar 2009) | 2 lines Add NEWS entry for regrtest change. ........
* Merged revisions ↵Benjamin Peterson2009-03-281-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 70554,70588-70589,70598,70605,70611-70621,70623-70624,70626-70627 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r70554 | benjamin.peterson | 2009-03-23 16:25:15 -0500 (Mon, 23 Mar 2009) | 1 line complain when there's no last exception ........ r70588 | benjamin.peterson | 2009-03-24 17:56:32 -0500 (Tue, 24 Mar 2009) | 1 line fix newline issue in test summary ........ r70589 | benjamin.peterson | 2009-03-24 18:07:07 -0500 (Tue, 24 Mar 2009) | 1 line another style nit ........ r70598 | benjamin.peterson | 2009-03-25 16:24:04 -0500 (Wed, 25 Mar 2009) | 1 line add shorthands for expected failures and unexpected success ........ r70605 | benjamin.peterson | 2009-03-26 11:32:23 -0500 (Thu, 26 Mar 2009) | 1 line remove uneeded function ........ r70611 | benjamin.peterson | 2009-03-26 13:35:37 -0500 (Thu, 26 Mar 2009) | 1 line add much better tests for python version information parsing ........ r70612 | benjamin.peterson | 2009-03-26 13:55:48 -0500 (Thu, 26 Mar 2009) | 1 line more and more implementations now support sys.subversion ........ r70613 | benjamin.peterson | 2009-03-26 13:58:30 -0500 (Thu, 26 Mar 2009) | 1 line roll old test in with new one ........ r70614 | benjamin.peterson | 2009-03-26 14:09:21 -0500 (Thu, 26 Mar 2009) | 1 line add support for PyPy ........ r70615 | benjamin.peterson | 2009-03-26 14:58:18 -0500 (Thu, 26 Mar 2009) | 5 lines add some useful utilities for skipping tests with unittest's new skipping ability most significantly apply a modified portion of the patch from #4242 with patches for skipping implementation details ........ r70616 | benjamin.peterson | 2009-03-26 15:05:50 -0500 (Thu, 26 Mar 2009) | 1 line rename TestCase.skip() to skipTest() because it causes annoying problems with trial #5571 ........ r70617 | benjamin.peterson | 2009-03-26 15:17:27 -0500 (Thu, 26 Mar 2009) | 1 line apply the second part of #4242's patch; classify all the implementation details in test_descr ........ r70618 | benjamin.peterson | 2009-03-26 15:48:25 -0500 (Thu, 26 Mar 2009) | 1 line remove test_support.TestSkipped and just use unittest.SkipTest ........ r70619 | benjamin.peterson | 2009-03-26 15:49:40 -0500 (Thu, 26 Mar 2009) | 1 line fix naming ........ r70620 | benjamin.peterson | 2009-03-26 16:10:30 -0500 (Thu, 26 Mar 2009) | 1 line fix incorrect auto-translation of TestSkipped -> unittest.SkipTest ........ r70621 | benjamin.peterson | 2009-03-26 16:11:16 -0500 (Thu, 26 Mar 2009) | 1 line must pass argument to get expected behavior ;) ........ r70623 | benjamin.peterson | 2009-03-26 16:30:10 -0500 (Thu, 26 Mar 2009) | 1 line add missing import ........ r70624 | benjamin.peterson | 2009-03-26 16:30:54 -0500 (Thu, 26 Mar 2009) | 1 line ** is required here ........ r70626 | benjamin.peterson | 2009-03-26 16:40:29 -0500 (Thu, 26 Mar 2009) | 1 line update email tests to use SkipTest ........ r70627 | benjamin.peterson | 2009-03-26 16:44:43 -0500 (Thu, 26 Mar 2009) | 1 line fix another name ........