Permalink
Browse files

Add failing test: columnize called with very long entries.

Bug reported on-list.
  • Loading branch information...
1 parent b46acf0 commit 371bb8f7d7a0f77e7f756ed691b5806a8da33326 @fperez committed Aug 13, 2011
Showing with 30 additions and 0 deletions.
  1. +30 −0 IPython/utils/tests/test_text.py
@@ -0,0 +1,30 @@
+# encoding: utf-8
+"""Tests for IPython.utils.text"""
+
+#-----------------------------------------------------------------------------
+# Copyright (C) 2011 The IPython Development Team
+#
+# Distributed under the terms of the BSD License. The full license is in
+# the file COPYING, distributed as part of this software.
+#-----------------------------------------------------------------------------
+
+#-----------------------------------------------------------------------------
+# Imports
+#-----------------------------------------------------------------------------
+
+import os
+
+import nose.tools as nt
+
+from nose import with_setup
+
+from IPython.testing import decorators as dec
+from IPython.utils import text
+
+#-----------------------------------------------------------------------------
+# Globals
+#-----------------------------------------------------------------------------
+
+def test_columnize():
+ """Test columnize with very long inputs"""
+ text.columnize(['a'*180, 'b'*180])

0 comments on commit 371bb8f

Please sign in to comment.