From f85e3d8eff3a0096dcaecae44a9027e840653e36 2011-07-20 22:50:37 From: Julian Taylor Date: 2011-07-20 22:50:37 Subject: [PATCH] Add test for non-ascii characters in PlainTextFormatter --- diff --git a/IPython/core/tests/test_interactiveshell.py b/IPython/core/tests/test_interactiveshell.py index b4e5fcf..e904d21 100644 --- a/IPython/core/tests/test_interactiveshell.py +++ b/IPython/core/tests/test_interactiveshell.py @@ -112,5 +112,11 @@ class InteractiveShellTestCase(unittest.TestCase): ip = get_ipython() ip.run_cell('!(true)\n', False) ip.run_cell('!(true)\n\n\n', False) - - + + def test_gh_597(self): + class Spam(object): + def __repr__(self): + return "\xe9"*50 + import IPython.core.formatters + f = IPython.core.formatters.PlainTextFormatter() + f([Spam(),Spam()])