[Patches] [ python-Patches-1005123 ] test_curses fails on MacOS X 10.3

SourceForge.net noreply at sourceforge.net
Sat Aug 7 15:40:20 CEST 2004


Patches item #1005123, was opened at 2004-08-07 15:40
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1005123&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Ronald Oussoren (ronaldoussoren)
Assigned to: Nobody/Anonymous (nobody)
Summary: test_curses fails on MacOS X 10.3

Initial Comment:
test_curses fails on MacOS X 10.3.

I'm seeing two failures:

The call to curses.curs_set at line 143 (in module_funcs) fails (that 
is raises curses.error), which the test doesn't expect.  

The test for curses.use_default_colors() (also in module_funcs) 
also fails. curses.has_colors() is False, which probably explains 
why use_default_colors fails.

The attached patch adds a try block around the call to 
curses.curs_set and reindents the test for 
curses.use_default_colors().

WARNING: I've never used curses. 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1005123&group_id=5470


More information about the Patches mailing list