Permalink
Browse files

Add test for gh-2684.

  • Loading branch information...
1 parent 9b11523 commit a2f3acee0bf8a4d9f7b0ed91205aefd4b17472ee @bfroehle committed Dec 16, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 IPython/lib/tests/test_pretty.py
@@ -18,6 +18,7 @@
# Our own imports
from IPython.lib import pretty
+from IPython.testing.decorators import skip_without
#-----------------------------------------------------------------------------
# Classes and functions
@@ -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.