##// END OF EJS Templates
back to decorator skip
Ben Greiner -
Show More
@@ -7,7 +7,6 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
11 import types
10 import types
12 import string
11 import string
13 import sys
12 import sys
@@ -16,6 +15,7 b' import unittest'
16 import nose.tools as nt
15 import nose.tools as nt
17
16
18 from IPython.lib import pretty
17 from IPython.lib import pretty
18 from IPython.testing.decorators import skip_without
19
19
20 from io import StringIO
20 from io import StringIO
21
21
@@ -119,12 +119,15 b' def test_sets():'
119 yield nt.assert_equal, got_output, expected_output
119 yield nt.assert_equal, got_output, expected_output
120
120
121
121
122 @skip_without("xxlimited" if sys.version_info < (3, 10) else "xxlimited_35")
122 def test_pprint_heap_allocated_type():
123 def test_pprint_heap_allocated_type():
123 """
124 """
124 Test that pprint works for heap allocated types.
125 Test that pprint works for heap allocated types.
125 """
126 """
126 module_name = "xxlimited" if sys.version_info < (3, 10) else "xxlimited_35"
127 if sys.version_info < (3, 10):
127 xxlimited = pytest.importorskip(module_name)
128 import xxlimited
129 else:
130 import xxlimited_35
128 output = pretty.pretty(xxlimited.Null)
131 output = pretty.pretty(xxlimited.Null)
129 nt.assert_equal(output, 'xxlimited.Null')
132 nt.assert_equal(output, 'xxlimited.Null')
130
133
General Comments 0
You need to be logged in to leave comments. Login now