Made test introduced in 566e284c pass on Python 3.