查看文章 |
Fwd: Debugging doctests interactively
2009-02-03 14:44
The artical is at here. You can use this module to interactive when you are testing with doctest. There are also some tests in Uliweb, and some of them are implemented by doctest, but some times, it's not easy to inspect the variables, run some other code when you executing the test, and this tool will help me a lot. It's simple to use, just add below code in your doctest: >>> ... >>> import interlude >>> interlude.interact(locals()) >>> ... Remember, you should install interlude first, you can use: easy_install interlude to install it. |
最近读者: