From cec52bd225a7f4d9dd41d27f110ddfb165edbb10 2019-12-13 00:42:08 From: Matthias Bussonnier Date: 2019-12-13 00:42:08 Subject: [PATCH] Remove more references to py3compat. `input` is unnecessary; and so is `u_format` --- diff --git a/IPython/core/tests/test_inputsplitter.py b/IPython/core/tests/test_inputsplitter.py index 0b3e47d..a39943a 100644 --- a/IPython/core/tests/test_inputsplitter.py +++ b/IPython/core/tests/test_inputsplitter.py @@ -14,8 +14,6 @@ from IPython.core import inputsplitter as isp from IPython.core.inputtransformer import InputTransformer from IPython.core.tests.test_inputtransformer import syntax, syntax_ml from IPython.testing import tools as tt -from IPython.utils import py3compat -from IPython.utils.py3compat import input #----------------------------------------------------------------------------- # Semi-complete examples (also used as tests) @@ -568,8 +566,8 @@ class CellMagicsCommon(object): def test_whole_cell(self): src = "%%cellm line\nbody\n" out = self.sp.transform_cell(src) - ref = u"get_ipython().run_cell_magic('cellm', 'line', 'body')\n" - nt.assert_equal(out, py3compat.u_format(ref)) + ref = "get_ipython().run_cell_magic('cellm', 'line', 'body')\n" + nt.assert_equal(out, ref) def test_cellmagic_help(self): self.sp.push('%%cellm?')