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