Accommodate python 3.2 quirks in tests