Traceback (most recent call last):
File "D:/pywork/kgtext/src/utils/test_suite2.py", line 3, in <module>
class testHttp(unittest):
TypeError: module() takes at most 2 arguments (3 given)
unittest报错解决方法:是因为继承错了。testHttp应该继承unittest.TestCase
Traceback (most recent call last):
File "D:/pywork/kgtext/src/utils/test_suite2.py", line 3, in <module>
class testHttp(unittest):
TypeError: module() takes at most 2 arguments (3 given)
unittest报错解决方法:是因为继承错了。testHttp应该继承unittest.TestCase