Issue #16000: Convert test_curses to use unittest
Issue #16000: Convert test_curses to use unittest
Fix test_ctypes failure on OpenIndiana buildbot where _ctypes is not built
Merge with 3.4