摘要: 第一个 '''第一种实现''' class TestMy: def fun1(self): self.d = u2.connect() # 捕获连接异常 def test_fun1(self): with pytest.raises(RuntimeError) as e: self.fun1() e 阅读全文
posted @ 2021-06-23 18:08 SpriteGirl 阅读(569) 评论(0) 推荐(0)