File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 77
88from collections import Counter , defaultdict , deque , OrderedDict
99import os
10- import pytest
1110import types
1211import string
1312import sys
1615import nose .tools as nt
1716
1817from IPython .lib import pretty
18+ from IPython .testing .decorators import skip_without
1919
2020from io import StringIO
2121
@@ -119,12 +119,15 @@ def test_sets():
119119 yield nt .assert_equal , got_output , expected_output
120120
121121
122+ @skip_without ("xxlimited" if sys .version_info < (3 , 10 ) else "xxlimited_35" )
122123def test_pprint_heap_allocated_type ():
123124 """
124125 Test that pprint works for heap allocated types.
125126 """
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
128131 output = pretty .pretty (xxlimited .Null )
129132 nt .assert_equal (output , 'xxlimited.Null' )
130133
You can’t perform that action at this time.
0 commit comments