python中是否有任何断言语句来检查是否没有引发任何异常?
python 203
原文标题 :Is there any assert statement in python to check if there is no raise of any exception?
正如我们在python中所知道的,我们使用assert。Raises来检查异常情况,同样有没有与之相反的assert语句?就像通过场景测试用例不会引发任何异常。我在网上查过没有得到正确的答案,我是python的新手,在此先感谢