Skip to content

Commit c1f401c

Browse files
author
laoguo
committed
unittest测试使用
1 parent b249f4f commit c1f401c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unittest测试使用.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def test_add(self):
88
run_result=self.a+self.b
99
self.assertEqual(run_result,self.result,"self.a+self.b不等于3")
1010
def tearDown(self):
11-
# 类似类的del方法,用来回收测试的环境
11+
# 类似类的del方法
1212
pass
1313
if __name__=="__main__":
1414
unittest.main()

0 commit comments

Comments
 (0)