summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_curses.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_curses.py')
-rw-r--r--Lib/test/test_curses.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_curses.py b/Lib/test/test_curses.py
index 8caf0de..b4673e9 100644
--- a/Lib/test/test_curses.py
+++ b/Lib/test/test_curses.py
@@ -265,14 +265,16 @@ def test_issue6243(stdscr):
stdscr.getkey()
def test_unget_wch(stdscr):
- ch = '\xe9'
+ if not hasattr(curses, 'unget_wch'):
+ return
+ ch = 'a'
curses.unget_wch(ch)
read = stdscr.get_wch()
read = chr(read)
if read != ch:
raise AssertionError("%r != %r" % (read, ch))
- ch = ord('\xe9')
+ ch = ord('a')
curses.unget_wch(ch)
read = stdscr.get_wch()
if read != ch: