Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #3062 from juliantaylor/double-pyximport-test

test double pyximport (#3007)
  • Loading branch information...
commit ce0fb7661ef9f0ea96cfee29031d2b65e1e19079 2 parents 3fb35dc + b47acf0
Min RK minrk authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  IPython/extensions/tests/test_cythonmagic.py
3  IPython/extensions/tests/test_cythonmagic.py
View
@@ -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:
Please sign in to comment.
Something went wrong with that request. Please try again.