Skip to content

Commit

Permalink
'fix tests'
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Aug 26, 2017
1 parent a51ddfb commit 07a709b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion IPython/core/magic.py
Expand Up @@ -523,7 +523,7 @@ def __init__(self, shell=None, **kwargs):
# But we mustn't clobber the *class* mapping, in case of multiple instances.
class_magics = self.magics
self.magics = {}
for mtype in (*magic_kinds, 'completer'):
for mtype in list(magic_kinds)+['completer']:
self.magics[mtype] = {}
cls_tab = class_magics[mtype]
for magic_name, meth_name in cls_tab.items():
Expand Down
2 changes: 1 addition & 1 deletion IPython/core/tests/test_magic.py
Expand Up @@ -1028,7 +1028,7 @@ def test_ls_magic():
lsmagic = ip.magic('lsmagic')
with warnings.catch_warnings(record=True) as w:
j = json_formatter(lsmagic)
nt.assert_equal(sorted(j), ['cell', 'line'])
nt.assert_equal(sorted(j), ['cell', 'completer', 'line'])
nt.assert_equal(w, []) # no warnings

def test_strip_initial_indent():
Expand Down

0 comments on commit 07a709b

Please sign in to comment.