Show More
@@ -84,6 +84,20 b' def test_callability_checking():' | |||
|
84 | 84 | |
|
85 | 85 | nt.assert_equal(gotoutput, expectedoutput) |
|
86 | 86 | |
|
87 | ||
|
88 | def test_sets(): | |
|
89 | """ | |
|
90 | Test that set and frozenset use Python 3 formatting. | |
|
91 | """ | |
|
92 | objects = [set(), frozenset(), set([1]), frozenset([1]), set([1,2]), | |
|
93 | frozenset([1,2])] | |
|
94 | expected = ['set()', 'frozenset()', '{1}', 'frozenset({1})', '{1, 2}', | |
|
95 | 'frozenset({1, 2})'] | |
|
96 | for obj, expected_output in zip(objects, expected): | |
|
97 | got_output = pretty.pretty(obj) | |
|
98 | yield nt.assert_equal, got_output, expected_output | |
|
99 | ||
|
100 | ||
|
87 | 101 | @skip_without('xxlimited') |
|
88 | 102 | def test_pprint_heap_allocated_type(): |
|
89 | 103 | """ |
General Comments 0
You need to be logged in to leave comments.
Login now