Serhiy Storchaka 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								59f9b4e450 
								
							 
						 
						
							
							
								
								bpo-42681: Fix test_curses failures related to color pairs (GH-24089)  
							
							... 
							
							
							
							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. 
							
						 
						
							2021-01-05 09:13:15 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Serhiy Storchaka 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								b6fc0c406e 
								
							 
						 
						
							
							
								
								bpo-42789: Enable using /dev/tty in test_curses. (GH-24085)  
							
							... 
							
							
							
							It was temporary disabled for debugging. 
							
						 
						
							2021-01-04 12:30:20 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Serhiy Storchaka 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								1470edd613 
								
							 
						 
						
							
							
								
								bpo-42681: Fix range checks for color and pair numbers in curses (GH-23874)  
							
							
							
						 
						
							2021-01-03 22:51:11 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Serhiy Storchaka 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								607501abb4 
								
							 
						 
						
							
							
								
								bpo-42789: Don't skip curses tests on non-tty. (GH-24009)  
							
							... 
							
							
							
							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. 
							
						 
						
							2021-01-02 19:35:15 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Hans Petter Jansson 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								da4e09fff6 
								
							 
						 
						
							
							
								
								bpo-36982: Add support for extended color functions in ncurses 6.1 (GH-17536)  
							
							... 
							
							
							
							Co-authored-by: Jeffrey Kintscher <websurfer@surf2c.net> 
							
						 
						
							2020-08-03 23:51:33 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Hai Shi 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								a7f5d93bb6 
								
							 
						 
						
							
							
								
								bpo-40275: Use new test.support helper submodules in tests (GH-21449)  
							
							
							
						 
						
							2020-08-03 18:41:24 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Anthony Sottile 
								
							 
						 
						
							
							
							
							
								
							
							
								b32cb97bce 
								
							 
						 
						
							
							
								
								bpo-38312: Add curses.{get,set}_escdelay and curses.{get,set}_tabsize. (GH-16938)  
							
							
							
						 
						
							2019-10-31 11:13:48 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Serhiy Storchaka 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								b232df9197 
								
							 
						 
						
							
							
								
								bpo-31680: Add curses.ncurses_version. (GH-4217)  
							
							... 
							
							
							
							Use curses.ncurses_version for conditionally skipping a test. 
							
						 
						
							2018-10-30 13:22:42 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Serhiy Storchaka 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								a7723d8b09 
								
							 
						 
						
							
							
								
								bpo-31924: Fix test_curses on NetBSD 8. ( #4228 )  
							
							
							
						 
						
							2017-11-03 20:29:33 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Serhiy Storchaka 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								4f469c0966 
								
							 
						 
						
							
							
								
								bpo-27666: Fixed stack corruption in curses.box() and curses.ungetmouse(). ( #4220 )  
							
							
							
						 
						
							2017-11-01 20:48:49 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Serhiy Storchaka 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								7e68790f3d 
								
							 
						 
						
							
							
								
								bpo-15037: Add a workaround for getkey() in curses for ncurses 5.7 and earlier. ( #3826 )  
							
							... 
							
							
							
							Skip a test for unget_wch()/get_wch() on OpenBSD since they are broken
in ncurses 5.7. 
							
						 
						
							2017-11-01 16:03:40 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Serhiy Storchaka 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								894ebd065e 
								
							 
						 
						
							
							
								
								bpo-31919: Fix building the curses module on OpenIndiana. ( #4211 )  
							
							
							
						 
						
							2017-11-01 14:34:20 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Serhiy Storchaka 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								baac01e629 
								
							 
						 
						
							
							
								
								bpo-31891: Fix building the curses module on NetBSD. ( #4165 )  
							
							
							
						 
						
							2017-10-31 13:56:44 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								19f68301a1 
								
							 
						 
						
							
							
								
								bpo-31629: Add support.SaveSignals ( #4183 )  
							
							... 
							
							
							
							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. 
							
						 
						
							2017-10-31 03:14:01 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Serhiy Storchaka 
								
							 
						 
						
							
							
							
							
								
							
							
								f7eae0adfc 
								
							 
						 
						
							
							
								
								[security] bpo-13617: Reject embedded null characters in wchar* strings. ( #2302 )  
							
							... 
							
							
							
							Based on patch by Victor Stinner.
Add private C API function _PyUnicode_AsUnicode() which is similar to
PyUnicode_AsUnicode(), but checks for null characters. 
							
						 
						
							2017-06-28 08:30:06 +03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Xavier de Gaye 
								
							 
						 
						
							
							
							
							
								
							
							
								645bc80918 
								
							 
						 
						
							
							
								
								test_curses - substitute self.skip() with self.skipTest()  
							
							
							
						 
						
							2017-01-06 09:50:27 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Serhiy Storchaka 
								
							 
						 
						
							
							
							
							
								
							
							
								bdf9e0ea74 
								
							 
						 
						
							
							
								
								Issue  #13051 : Fixed recursion errors in large or resized curses.textpad.Textbox.  
							
							... 
							
							
							
							Based on patch by Tycho Andersen. 
							
						 
						
							2016-12-28 10:16:06 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Serhiy Storchaka 
								
							 
						 
						
							
							
							
							
								
							
							
								283de2b9c1 
								
							 
						 
						
							
							
								
								Issue  #9770 : curses.ascii predicates now work correctly with negative integers.  
							
							
							
						 
						
							2016-12-28 10:04:27 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Berker Peksag 
								
							 
						 
						
							
							
							
							
								
							
							
								53926f19cd 
								
							 
						 
						
							
							
								
								Issue  #27801 : Skip test_update_lines_cols when update_lines_cols() is not available  
							
							
							
						 
						
							2016-08-19 17:59:01 +03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Benjamin Peterson 
								
							 
						 
						
							
							
							
							
								
							
							
								b1c6bdc76a 
								
							 
						 
						
							
							
								
								merge 3.4  
							
							
							
						 
						
							2016-08-15 21:43:57 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Benjamin Peterson 
								
							 
						 
						
							
							
							
							
								
							
							
								432ea4ff37 
								
							 
						 
						
							
							
								
								fail when negative values are passed to instr()  
							
							
							
						 
						
							2016-08-15 21:40:14 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Benjamin Peterson 
								
							 
						 
						
							
							
							
							
								
							
							
								f17a8e9acd 
								
							 
						 
						
							
							
								
								merge 3.4  
							
							
							
						 
						
							2016-08-13 18:21:16 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Benjamin Peterson 
								
							 
						 
						
							
							
							
							
								
							
							
								40a77c3381 
								
							 
						 
						
							
							
								
								do not allow reading negative values with getstr()  
							
							
							
						 
						
							2016-08-13 18:15:28 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Serhiy Storchaka 
								
							 
						 
						
							
							
							
							
								
							
							
								514f9736a7 
								
							 
						 
						
							
							
								
								Issue  #27294 : Numerical state in the repr for Tkinter event objects is now  
							
							... 
							
							
							
							represented as a compination of known flags. 
							
						 
						
							2016-06-18 22:08:11 +03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Serhiy Storchaka 
								
							 
						 
						
							
							
							
							
								
							
							
								0a91e43820 
								
							 
						 
						
							
							
								
								Fixed an error in previous commit.  
							
							
							
						 
						
							2016-05-22 18:23:36 +03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Serhiy Storchaka 
								
							 
						 
						
							
							
							
							
								
							
							
								53a00353b6 
								
							 
						 
						
							
							
								
								Temporary skip curses tests on non-tty (issue  #27067 ).  
							
							
							
						 
						
							2016-05-22 18:16:20 +03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Serhiy Storchaka 
								
							 
						 
						
							
							
							
							
								
							
							
								0eb39e7886 
								
							 
						 
						
							
							
								
								Issue  #27067 : Improved curses tests.  
							
							
							
						 
						
							2016-05-21 21:36:11 +03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Serhiy Storchaka 
								
							 
						 
						
							
							
							
							
								
							
							
								e3f1b0911e 
								
							 
						 
						
							
							
								
								Issue  #23815 : Fixed crashes related to directly created instances of types in  
							
							... 
							
							
							
							_tkinter and curses.panel modules. 
							
						 
						
							2016-05-08 20:46:22 +03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Zachary Ware 
								
							 
						 
						
							
							
							
							
								
							
							
								baf45c590c 
								
							 
						 
						
							
							
								
								Issue  #16000 : Convert test_curses to use unittest  
							
							
							
						 
						
							2014-10-17 13:59:18 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Larry Hastings 
								
							 
						 
						
							
							
							
							
								
							
							
								9147a9697a 
								
							 
						 
						
							
							
								
								Issue  #21088 : Bugfix for curses.window.addch() regression in 3.4.0.  
							
							... 
							
							
							
							In porting to Argument Clinic, the first two arguments were reversed. 
							
						 
						
							2014-05-04 04:41:18 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Larry Hastings 
								
							 
						 
						
							
							
							
							
								
							
							
								23e37aa7b7 
								
							 
						 
						
							
							
								
								Issue  #20358 : Tests for curses.window.overlay and curses.window.overwrite  
							
							... 
							
							
							
							no longer specify min{row,col} > max{row,col}. 
							
						 
						
							2014-01-25 22:19:47 -08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Andrew Kuchling 
								
							 
						 
						
							
							
							
							
								
							
							
								9290dd14b0 
								
							 
						 
						
							
							
								
								#18113 : avoid segfault if Py_XDECREF triggers code that calls set_panel_userptr again  
							
							... 
							
							
							
							Problem noted & original patch by Serhiy Storchaka; I tweaked the patch a bit. 
							
						 
						
							2013-06-22 14:50:56 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Andrew Kuchling 
								
							 
						 
						
							
							
							
							
								
							
							
								53e5ea7951 
								
							 
						 
						
							
							
								
								#18113 : Objects associated to a curses.panel object with set_userptr() were leaked.  
							
							... 
							
							
							
							Reported by Atsuo Ishimoto. 
							
						 
						
							2013-06-15 14:04:04 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								ca2b64682e 
								
							 
						 
						
							
							
								
								Issue  #15785 : Modify window.get_wch() API of the curses module: return a  
							
							... 
							
							
							
							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. 
							
						 
						
							2012-08-29 01:40:57 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								d1b097f884 
								
							 
						 
						
							
							
								
								Issue  #13415 : test_curses skips unencodable characters  
							
							
							
						 
						
							2011-11-28 07:26:19 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								756c6ecdc4 
								
							 
						 
						
							
							
								
								Issue  #13415 : Help to locate curses.h when _curses module is linked to ncursesw  
							
							
							
						 
						
							2011-11-27 00:19:53 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								0fdfceb782 
								
							 
						 
						
							
							
								
								Issue  #12567 : The curses module uses Unicode functions for Unicode arguments  
							
							... 
							
							
							
							when it is linked to the ncurses library. It encodes also Unicode strings to
the locale encoding instead of UTF-8. 
							
						 
						
							2011-11-25 22:10:02 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Steve Dower 
								
							 
						 
						
							
							
							
							
								
							
							
								d2bc389e55 
								
							 
						 
						
							
							
								
								Issue  #4254 : Adds _curses.update_lines_cols() Patch by Arnon Yaari  
							
							
							
						 
						
							2015-04-15 18:06:05 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								65f51bb150 
								
							 
						 
						
							
							
								
								(Merge 3.2) Issue  #10570 : curses.putp() is now expecting a byte string, instead  
							
							... 
							
							
							
							of a Unicode string.
This is an incompatible change, but putp() is used to emit terminfo commands,
which are bytes strings, not Unicode strings. 
							
						 
						
							2011-11-03 20:36:55 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								b3bc7e764d 
								
							 
						 
						
							
							
								
								Issue  #10570 : curses.putp() is now expecting a byte string, instead of a  
							
							... 
							
							
							
							Unicode string.
This is an incompatible change, but putp() is used to emit terminfo commands,
which are bytes strings, not Unicode strings. 
							
						 
						
							2011-11-03 20:35:40 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								df5bccc8a3 
								
							 
						 
						
							
							
								
								(Merge 3.2) Issue  #10570 : curses.tigetstr() is now expecting a byte string,  
							
							... 
							
							
							
							instead of a Unicode string.
This is an incompatible change, but the previous behaviour was completly wrong. 
							
						 
						
							2011-11-02 23:47:58 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								2662133a05 
								
							 
						 
						
							
							
								
								Issue  #10570 : curses.tigetstr() is now expecting a byte string, instead of a  
							
							... 
							
							
							
							Unicode string.
This is an incompatible change, but the previous behaviour was completly wrong. 
							
						 
						
							2011-11-02 23:45:29 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								900c292c6b 
								
							 
						 
						
							
							
								
								Issue  #12567 : Fix curses.unget_wch() tests  
							
							... 
							
							
							
							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. 
							
						 
						
							2011-09-06 10:08:28 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								71e44cb97f 
								
							 
						 
						
							
							
								
								Issue  #12567 : Add curses.unget_wch() function  
							
							... 
							
							
							
							Push a character so the next get_wch() will return it. 
							
						 
						
							2011-09-06 01:53:03 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Nadeem Vawda 
								
							 
						 
						
							
							
							
							
								
							
							
								780199e6a3 
								
							 
						 
						
							
							
								
								Issue  #12669 : Fix test_curses so that it can run on the buildbots.  
							
							
							
						 
						
							2011-08-13 15:43:49 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Mark Dickinson 
								
							 
						 
						
							
							
							
							
								
							
							
								af43e9a288 
								
							 
						 
						
							
							
								
								Issue  #8433 : Fix test_curses failure for platforms with recent versions of ncurses.  
							
							
							
						 
						
							2010-08-07 12:33:36 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Stefan Krah 
								
							 
						 
						
							
							
							
							
								
							
							
								095b273afc 
								
							 
						 
						
							
							
								
								Issue  #7384 : If the system readline library is linked against ncurses,  
							
							... 
							
							
							
							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! 
							
						 
						
							2010-06-08 13:41:44 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Mark Dickinson 
								
							 
						 
						
							
							
							
							
								
							
							
								945e242d06 
								
							 
						 
						
							
							
								
								Merged revisions 78281 via svnmerge from  
							
							... 
							
							
							
							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.
........ 
							
						 
						
							2010-02-21 13:42:03 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									R. David Murray 
								
							 
						 
						
							
							
							
							
								
							
							
								0938644685 
								
							 
						 
						
							
							
								
								Note that on py3k we are actually looking at sys.stdout, not sys.__stdout__.  
							
							... 
							
							
							
							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.
........ 
							
						 
						
							2009-10-19 16:04:44 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Benjamin Peterson 
								
							 
						 
						
							
							
							
							
								
							
							
								7e2ef573ed 
								
							 
						 
						
							
							
								
								Merged revisions 75066 via svnmerge from  
							
							... 
							
							
							
							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.
........ 
							
						 
						
							2009-10-04 20:40:17 +00:00