阅读背景:

如何显示在Python2.7中的unittest中assertRaises()捕获的错误消息?

来源:互联网 

In order to make sure that the error messages from my module are informative, I would like to see all the error messages caught by assertRaises(). Today I do it for each assertRaises(), but as there are lots of them in the test code it gets very tedious.In order to make sure that the error messages f




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: