Fix tests under pypy3.