Skip to content

Commit

Permalink
back to decorator skip
Browse files Browse the repository at this point in the history
  • Loading branch information
bnavigator committed Dec 20, 2021
1 parent 7fd03e7 commit 533e509
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions IPython/lib/tests/test_pretty.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

from collections import Counter, defaultdict, deque, OrderedDict
import os
import pytest
import types
import string
import sys
Expand All @@ -16,6 +15,7 @@
import nose.tools as nt

from IPython.lib import pretty
from IPython.testing.decorators import skip_without

from io import StringIO

Expand Down Expand Up @@ -119,12 +119,15 @@ def test_sets():
yield nt.assert_equal, got_output, expected_output


@skip_without("xxlimited" if sys.version_info < (3, 10) else "xxlimited_35")
def test_pprint_heap_allocated_type():
"""
Test that pprint works for heap allocated types.
"""
module_name = "xxlimited" if sys.version_info < (3, 10) else "xxlimited_35"
xxlimited = pytest.importorskip(module_name)
if sys.version_info < (3, 10):
import xxlimited
else:
import xxlimited_35
output = pretty.pretty(xxlimited.Null)
nt.assert_equal(output, 'xxlimited.Null')

Expand Down

0 comments on commit 533e509

Please sign in to comment.