##// END OF EJS Templates
fixing InteractiveShell instantiation in test
Jonathan Taylor -
Show More
@@ -2,12 +2,10 b' import numpy as np'
2 from IPython.core.interactiveshell import InteractiveShell
2 from IPython.core.interactiveshell import InteractiveShell
3 from IPython.extensions import rmagic
3 from IPython.extensions import rmagic
4
4
5 ip = None
5 ip = get_ipython()
6 def setup():
7 global ip
8 ip = InteractiveShell()
9 ip.magic('load_ext rmagic')
6 ip.magic('load_ext rmagic')
10
7
8
11 def test_push():
9 def test_push():
12 rm = rmagic.RMagics(ip)
10 rm = rmagic.RMagics(ip)
13 ip.push({'X':np.arange(5), 'Y':np.array([3,5,4,6,7])})
11 ip.push({'X':np.arange(5), 'Y':np.array([3,5,4,6,7])})
General Comments 0
You need to be logged in to leave comments. Login now