Fix TestCorruptWhisperFile to not show a DeprecationWarning
Work around a bug in python2.6 so the tests pass

For more context see this minimal reproducer:
https://gist.github.com/SEJeff/891fb08dc908ec58a6cb

This bug is total bs