diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-26 23:19:53 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-26 23:19:53 (GMT) |
commit | 756c6ecdc4fa89efc8f0bb4c048ec4644b8fb5f9 (patch) | |
tree | ffce71d02ba3cfe772735439afc72d254cc1ae8e /Lib/test/test_curses.py | |
parent | 5604ef3e36756e59d3396ed16d7a94de2687e0ac (diff) | |
download | cpython-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.py | 5 |
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: |