Permalink
Browse files

test double pyximport

  • Loading branch information...
juliantaylor committed Mar 11, 2013
1 parent 3fb35dc commit b47acf0960278668b6382656ecf4e24856d9d8fd
Showing with 3 additions and 0 deletions.
  1. +3 −0 IPython/extensions/tests/test_cythonmagic.py
@@ -34,6 +34,9 @@ def test_cython_pyximport():
ip.run_cell_magic('cython_pyximport', module_name, code)
ip.ex('g = f(10)')
nt.assert_equal(ip.user_ns['g'], 20.0)
+ ip.run_cell_magic('cython_pyximport', module_name, code)
+ ip.ex('h = f(-10)')
+ nt.assert_equal(ip.user_ns['h'], -20.0)
try:
os.remove(module_name+'.pyx')
except OSError:

0 comments on commit b47acf0

Please sign in to comment.