Get all of test_prompt tests working on Python 2.6/2.7.