summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_curses.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2003-08-29 18:49:05 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2003-08-29 18:49:05 (GMT)
commite8792c1f65ebbcbd7958570c66c6bc4132052c12 (patch)
tree2806a0d04fbda2360f2226f999b6188b0c7abb8a /Lib/test/test_curses.py
parent72cdb702966c12857619397460bad3a9cf97d03a (diff)
downloadcpython-e8792c1f65ebbcbd7958570c66c6bc4132052c12.zip
cpython-e8792c1f65ebbcbd7958570c66c6bc4132052c12.tar.gz
cpython-e8792c1f65ebbcbd7958570c66c6bc4132052c12.tar.bz2
Add tests for meta- bit set
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 e65adbf..10ebe09 100644
--- a/Lib/test/test_curses.py
+++ b/Lib/test/test_curses.py
@@ -198,7 +198,10 @@ def unit_tests():
from curses import ascii
for ch, expected in [('a', 'a'), ('A', 'A'),
(';', ';'), (' ', ' '),
- ('\x7f', '^?'), ('\n', '^J'), ('\0', '^@')]:
+ ('\x7f', '^?'), ('\n', '^J'), ('\0', '^@'),
+ # Meta-bit characters
+ ('\x8a', '!^J'), ('\xc1', '!A'),
+ ]:
if ascii.unctrl(ch) != expected:
print 'curses.unctrl fails on character', repr(ch)