Show More
@@ -141,9 +141,12 b' def test_pprint_heap_allocated_type():' | |||
|
141 | 141 | Test that pprint works for heap allocated types. |
|
142 | 142 | """ |
|
143 | 143 | module_name = "xxlimited" if sys.version_info < (3, 10) else "xxlimited_35" |
|
144 | expected_output = ( | |
|
145 | "xxlimited.Null" if sys.version_info < (3, 10, 6) else "xxlimited_35.Null" | |
|
146 | ) | |
|
144 | 147 | xxlimited = pytest.importorskip(module_name) |
|
145 | 148 | output = pretty.pretty(xxlimited.Null) |
|
146 |
assert output == |
|
|
149 | assert output == expected_output | |
|
147 | 150 | |
|
148 | 151 | |
|
149 | 152 | def test_pprint_nomod(): |
General Comments 0
You need to be logged in to leave comments.
Login now