170
170
for type in [list, list2]:
171
171
self.assertEqual(pprint.pformat(type(o), indent=4), exp)
178
[ [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
182
self.assertEqual(pprint.pformat(o, indent=4, width=42), expected)
173
184
def test_sorted_dict(self):
174
185
# Starting in Python 2.5, pprint sorts dict displays by key regardless
175
186
# of how small the dictionary may be.