From fcb7280ac5b3c825edd997619a4a1e16e619f63c 2012-05-31 20:23:42 From: Jonathan Taylor Date: 2012-05-31 20:23:42 Subject: [PATCH] fixing InteractiveShell instantiation in test --- diff --git a/IPython/extensions/tests/test_rmagic.py b/IPython/extensions/tests/test_rmagic.py index 1ce0127..7d726eb 100644 --- a/IPython/extensions/tests/test_rmagic.py +++ b/IPython/extensions/tests/test_rmagic.py @@ -2,11 +2,9 @@ import numpy as np from IPython.core.interactiveshell import InteractiveShell from IPython.extensions import rmagic -ip = None -def setup(): - global ip - ip = InteractiveShell() - ip.magic('load_ext rmagic') +ip = get_ipython() +ip.magic('load_ext rmagic') + def test_push(): rm = rmagic.RMagics(ip)