unittst跳过测试和预期失败

unittest.skip() 直接跳过测试

unittest.skip()条件为真,跳过测试

unittest.skipUnless 条件为假,跳过测试

unittest.expectedFailure 预期设置失败

猜你喜欢

转载自www.cnblogs.com/godlove/p/10106020.html