summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_curses.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-11-26 23:19:53 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-11-26 23:19:53 (GMT)
commit756c6ecdc4fa89efc8f0bb4c048ec4644b8fb5f9 (patch)
treeffce71d02ba3cfe772735439afc72d254cc1ae8e /Lib/test/test_curses.py
parent5604ef3e36756e59d3396ed16d7a94de2687e0ac (diff)
downloadcpython-756c6ecdc4fa89efc8f0bb4c048ec4644b8fb5f9.zip
cpython-756c6ecdc4fa89efc8f0bb4c048ec4644b8fb5f9.tar.gz
cpython-756c6ecdc4fa89efc8f0bb4c048ec4644b8fb5f9.tar.bz2
Issue #13415: Help to locate curses.h when _curses module is linked to ncursesw
Diffstat (limited to 'Lib/test/test_curses.py')
-rw-r--r--Lib/test/test_curses.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_curses.py b/Lib/test/test_curses.py
index b416403..ce09855 100644
--- a/Lib/test/test_curses.py
+++ b/Lib/test/test_curses.py
@@ -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: