Show More
@@ -7,14 +7,16 b'' | |||||
7 |
|
7 | |||
8 | from collections import Counter, defaultdict, deque, OrderedDict |
|
8 | from collections import Counter, defaultdict, deque, OrderedDict | |
9 | import os |
|
9 | import os | |
|
10 | import pytest | |||
10 | import types |
|
11 | import types | |
11 | import string |
|
12 | import string | |
|
13 | import sys | |||
12 | import unittest |
|
14 | import unittest | |
13 |
|
15 | |||
14 | import pytest |
|
16 | import pytest | |
15 |
|
17 | |||
16 | from IPython.lib import pretty |
|
18 | from IPython.lib import pretty | |
17 |
from IPython.testing.decorators import |
|
19 | from IPython.testing.decorators import skip_iptest_but_not_pytest | |
18 |
|
20 | |||
19 | from io import StringIO |
|
21 | from io import StringIO | |
20 |
|
22 | |||
@@ -136,12 +138,12 b' def test_sets(obj, expected_output):' | |||||
136 | assert got_output == expected_output |
|
138 | assert got_output == expected_output | |
137 |
|
139 | |||
138 |
|
140 | |||
139 | @skip_without('xxlimited') |
|
|||
140 | def test_pprint_heap_allocated_type(): |
|
141 | def test_pprint_heap_allocated_type(): | |
141 | """ |
|
142 | """ | |
142 | Test that pprint works for heap allocated types. |
|
143 | Test that pprint works for heap allocated types. | |
143 | """ |
|
144 | """ | |
144 | import xxlimited |
|
145 | module_name = "xxlimited" if sys.version_info < (3, 10) else "xxlimited_35" | |
|
146 | xxlimited = pytest.importorskip(module_name) | |||
145 | output = pretty.pretty(xxlimited.Null) |
|
147 | output = pretty.pretty(xxlimited.Null) | |
146 | assert output == "xxlimited.Null" |
|
148 | assert output == "xxlimited.Null" | |
147 |
|
149 |
General Comments 0
You need to be logged in to leave comments.
Login now