第十四章:测试调试和异常

Testing rocks, but debugging? Not so much. The fact that there’s no compiler to analyzeyour code before Python executes it makes testing a critical part of development. Thegoal of this chapter is to discuss some common problems related to testing, debugging,and exception handling. It is not meant to be a gentle introduction to test-driven developmentor the unittest module. Thus, some familiarity with testing concepts isassumed.

文章导航