From ac224067d1e05be54fcc91a3036dbf07a8a4ce68 2019-11-30 19:49:26 From: Matthias Bussonnier Date: 2019-11-30 19:49:26 Subject: [PATCH] Remove useless call to u_format and redundant list comprehension One step toward #11987 --- diff --git a/IPython/core/tests/test_handlers.py b/IPython/core/tests/test_handlers.py index e87e29d..02860c8 100644 --- a/IPython/core/tests/test_handlers.py +++ b/IPython/core/tests/test_handlers.py @@ -49,11 +49,11 @@ def test_handlers(): # For many of the below, we're also checking that leading whitespace # turns off the esc char, which it should unless there is a continuation # line. - run([(i,py3compat.u_format(o)) for i,o in \ + run( [('"no change"', '"no change"'), # normal (u"lsmagic", "get_ipython().run_line_magic('lsmagic', '')"), # magic #("a = b # PYTHON-MODE", '_i'), # emacs -- avoids _in cache - ]]) + ]) # Objects which are instances of IPyAutocall are *always* autocalled autocallable = Autocallable()