Correct a test not working on Python3.