From ce0fb7661ef9f0ea96cfee29031d2b65e1e19079 2013-03-23 18:45:29 From: Min RK Date: 2013-03-23 18:45:29 Subject: [PATCH] Merge pull request #3062 from juliantaylor/double-pyximport-test test double pyximport (#3007) --- diff --git a/IPython/extensions/tests/test_cythonmagic.py b/IPython/extensions/tests/test_cythonmagic.py index af3aa8d..91e3a5f 100644 --- a/IPython/extensions/tests/test_cythonmagic.py +++ b/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: