##// END OF EJS Templates
xxlimited module is xxlimited_35 in Python 3.10
Lumir Balhar -
Show More
@@ -7,14 +7,16 b''
7 7
8 8 from collections import Counter, defaultdict, deque, OrderedDict
9 9 import os
10 import pytest
10 11 import types
11 12 import string
13 import sys
12 14 import unittest
13 15
14 16 import pytest
15 17
16 18 from IPython.lib import pretty
17 from IPython.testing.decorators import skip_without, skip_iptest_but_not_pytest
19 from IPython.testing.decorators import skip_iptest_but_not_pytest
18 20
19 21 from io import StringIO
20 22
@@ -136,12 +138,12 b' def test_sets(obj, expected_output):'
136 138 assert got_output == expected_output
137 139
138 140
139 @skip_without('xxlimited')
140 141 def test_pprint_heap_allocated_type():
141 142 """
142 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 147 output = pretty.pretty(xxlimited.Null)
146 148 assert output == "xxlimited.Null"
147 149
General Comments 0
You need to be logged in to leave comments. Login now