Fix test breakage in Python 2.6.