Show More
@@ -34,6 +34,9 b' def test_cython_pyximport():' | |||
|
34 | 34 | ip.run_cell_magic('cython_pyximport', module_name, code) |
|
35 | 35 | ip.ex('g = f(10)') |
|
36 | 36 | nt.assert_equal(ip.user_ns['g'], 20.0) |
|
37 | ip.run_cell_magic('cython_pyximport', module_name, code) | |
|
38 | ip.ex('h = f(-10)') | |
|
39 | nt.assert_equal(ip.user_ns['h'], -20.0) | |
|
37 | 40 | try: |
|
38 | 41 | os.remove(module_name+'.pyx') |
|
39 | 42 | except OSError: |
General Comments 0
You need to be logged in to leave comments.
Login now