Attempt to fix failing test on Python 3 buildbot