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