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