Show More
@@ -301,6 +301,16 b' def test_time2():' | |||
|
301 | 301 | with tt.AssertPrints("CPU times: user "): |
|
302 | 302 | ip.run_cell("%time None") |
|
303 | 303 | |
|
304 | def test_time3(): | |
|
305 | """Erroneous magic function calls, issue gh-3334""" | |
|
306 | ip = get_ipython() | |
|
307 | ip.user_ns.pop('run', None) | |
|
308 | ||
|
309 | with tt.AssertNotPrints("not found", channel='stderr'): | |
|
310 | ip.run_cell("%%time\n" | |
|
311 | "run = 0\n" | |
|
312 | "run += 1") | |
|
313 | ||
|
304 | 314 | def test_doctest_mode(): |
|
305 | 315 | "Toggle doctest_mode twice, it should be a no-op and run without error" |
|
306 | 316 | _ip.magic('doctest_mode') |
General Comments 0
You need to be logged in to leave comments.
Login now