dicts in doctests should use pprint to guarantee sortedness