Skip to content

Commit

Permalink
Add test for ipythongh-2684.
Browse files Browse the repository at this point in the history
  • Loading branch information
bfroehle committed Dec 16, 2012
1 parent 9b11523 commit a2f3ace
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions IPython/lib/tests/test_pretty.py
Expand Up @@ -18,6 +18,7 @@

# Our own imports
from IPython.lib import pretty
from IPython.testing.decorators import skip_without

#-----------------------------------------------------------------------------
# Classes and functions
Expand Down Expand Up @@ -82,3 +83,12 @@ def test_callability_checking():
expectedoutput = "Dummy1(...)"

nt.assert_equal(gotoutput, expectedoutput)

@skip_without('xxlimited')
def test_pprint_heap_allocated_type():
"""
Test that pprint works for heap allocated types.
"""
import xxlimited
output = pretty.pretty(xxlimited.Null)
nt.assert_equal(output, 'xxlimited.Null')

0 comments on commit a2f3ace

Please sign in to comment.