From 4626066244971d87157e3264debd7678a176b5e1 2011-12-15 22:46:27 From: Thomas Kluyver Date: 2011-12-15 22:46:27 Subject: [PATCH] Fix prompt test for Python 3. --- diff --git a/IPython/core/tests/test_prompts.py b/IPython/core/tests/test_prompts.py index 22ab04a..cd9d1c3 100644 --- a/IPython/core/tests/test_prompts.py +++ b/IPython/core/tests/test_prompts.py @@ -49,7 +49,7 @@ class PromptTests(unittest.TestCase): self.pm.color_scheme = 'NoColor' self.pm.in_template = "In [{int}]" prompt = self.pm.render('in') - self.assertEquals(prompt, u"In []") + self.assertEquals(prompt, u"In [%r]" % int) def test_undefined(self): self.pm.color_scheme = 'NoColor'