Fixed the test introduced in 2ca37af6 under Python 3.