This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_curses fails on MacOS X 10.3
Type: Stage:
Components: Tests Versions: Python 2.4
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: mwh Nosy List: mwh, ronaldoussoren
Priority: normal Keywords: patch

Created on 2004-08-07 13:40 by ronaldoussoren, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test_curses.patch ronaldoussoren, 2004-08-07 13:40
test_curses.patch ronaldoussoren, 2004-08-07 13:58 Updated version
Messages (3)
msg46575 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2004-08-07 13:40
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. 
msg46576 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2004-08-07 13:58
Logged In: YES 
user_id=580910

I've guarded the call to curs_set by tigetstr("cnorm"), based on a 
suggestion by mwh.
msg46577 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2004-08-07 15:27
Logged In: YES 
user_id=6656

Actually, I think you uploaded the same patch twice, but I've done 
what I suggested anyway :-)

Lib/test/test_curses.py revision 1.8.
History
Date User Action Args
2022-04-11 14:56:06adminsetgithub: 40710
2004-08-07 13:40:20ronaldoussorencreate