这种食品能吃,但是通常因为错误的标签或损坏的包装而卖不出去。
The food is edible, yet often unsalable because of incorrect labeling or damaged packaging.
假设没有执行包装,那么测试还将在错误出现时停止,但DOH报告的内容却是测试超时。
If wrapping was not done, the test would still fail on an error, but all the DOH would report is the test timed out.
对于 asyncEcho 测试,它将断言包装进一个 try/catch 程序块,并且,任何错误都将通过 deferred.errback(error) 调用被传递回 DOH。
With the asyncEcho test, it wraps the asserts in a try/catch, and any errors are passed back to the DOH through the deferred.errback(error) call.
应用推荐