Skip to content

Commit 8b5a2e0

Browse files
Fix test portability issue for ipython magic
the `.magic` method got deprecated a while ago, time to move!
1 parent 4328eac commit 8b5a2e0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pythran/tests/ipython_script.ipy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from IPython import get_ipython
22
ipython = get_ipython()
3-
ipython.magic('%load_ext pythran.magic')
3+
ipython.run_line_magic('load_ext', 'pythran.magic')
44
ipython.run_cell_magic('pythran', '', '''
55
#pythran export foo(int)
66
def foo(n): return n

pythran/tests/ipython_script_timeit.ipy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from IPython import get_ipython
22
ipython = get_ipython()
3-
ipython.magic('%load_ext pythran.magic')
3+
ipython.run_line_magic('load_ext', 'pythran.magic')
44
ipython.run_cell_magic('pythran', '-O2', '''
55
#pythran export foo(int)
66
def foo(n):

0 commit comments

Comments
 (0)