Fixed a test that fails under Python 3.