Skip to content

Commit

Permalink
Don't try to pass shell up kwargs from Magics class
Browse files Browse the repository at this point in the history
See ipython/traitlets#176 - this is causing test failures.
  • Loading branch information
takluyver committed Feb 17, 2016
1 parent 4db2575 commit e3d175b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IPython/core/magic.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,11 +516,11 @@ def __init__(self, shell=None, **kwargs):
raise ValueError('Magics subclass without registration - '
'did you forget to apply @magics_class?')
if shell is not None:
self.shell = shell
if hasattr(shell, 'configurables'):
shell.configurables.append(self)
if hasattr(shell, 'config'):
kwargs.setdefault('parent', shell)
kwargs['shell'] = shell

self.shell = shell
self.options_table = {}
Expand Down

0 comments on commit e3d175b

Please sign in to comment.