Fix a test to work under Python 2.3.