Python 2.4 compatibility in test_ha.