summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_curses.py
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2004-08-07 15:27:16 (GMT)
committerMichael W. Hudson <mwh@python.net>2004-08-07 15:27:16 (GMT)
commit2b3feec58f82fee5a8f74ef78e7061bfb73f09a2 (patch)
treeb217f4d5dbd8fb9218fd308e9634c2239b0699f2 /Lib/test/test_curses.py
parent3fdd43ef3507d0db65cff4dd8252e35f7b81988f (diff)
downloadcpython-2b3feec58f82fee5a8f74ef78e7061bfb73f09a2.zip
cpython-2b3feec58f82fee5a8f74ef78e7061bfb73f09a2.tar.gz
cpython-2b3feec58f82fee5a8f74ef78e7061bfb73f09a2.tar.bz2
This is more-or-less:
[ 1005123 ] test_curses fails on MacOS X 10.3 Be a bit more guarded about what we expect a terminal to be capable of.
Diffstat (limited to 'Lib/test/test_curses.py')
-rw-r--r--Lib/test/test_curses.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/test/test_curses.py b/Lib/test/test_curses.py
index 2065ef2..fa57e29 100644
--- a/Lib/test/test_curses.py
+++ b/Lib/test/test_curses.py
@@ -140,7 +140,8 @@ def module_funcs(stdscr):
func()
# Functions that actually need arguments
- curses.curs_set(1)
+ if curses.tigetstr("cnorm"):
+ curses.curs_set(1)
curses.delay_output(1)
curses.echo() ; curses.echo(1)
@@ -181,8 +182,8 @@ def module_funcs(stdscr):
curses.pair_content(curses.COLOR_PAIRS)
curses.pair_number(0)
- if hasattr(curses, 'use_default_colors'):
- curses.use_default_colors()
+ if hasattr(curses, 'use_default_colors'):
+ curses.use_default_colors()
if hasattr(curses, 'keyname'):
curses.keyname(13)