python | 修改错误:unittest.loader._FailedTest 与 module '__main__' has no attribute

  在测试代码时,遇到这样的错误: 源代码 output: ERROR: test_name_function (unittest.loader._FailedTest) AttributeError: module '__main__' has no attribute 'test_name_function'   只需修改源代码为: 即可。   参考:https://blog.csdn.net
相关文章
相关标签/搜索