mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #13415: Help to locate curses.h when _curses module is linked to ncursesw
This commit is contained in:
parent
5604ef3e36
commit
756c6ecdc4
2 changed files with 8 additions and 1 deletions
|
@ -268,7 +268,10 @@ def test_unget_wch(stdscr):
|
|||
if not hasattr(curses, 'unget_wch'):
|
||||
return
|
||||
for ch in ('a', '\xe9', '\u20ac', '\U0010FFFF'):
|
||||
curses.unget_wch(ch)
|
||||
try:
|
||||
curses.unget_wch(ch)
|
||||
except Exception as err:
|
||||
raise Exception("unget_wch(%a) failed: %s" % (ch, err))
|
||||
read = stdscr.get_wch()
|
||||
read = chr(read)
|
||||
if read != ch:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue