Stephen-Qin

当报如下错误:

TypeError: \'ModuleImportFailure\' object is not iterable

或者

TypeError: \'_FailedTest\' object is not iterable时,

表示测试用例在运行时出现了错误,可以具体python运行某个测试用例,比如有一次错误的原因是因为缺了XXXX包,但这个错误不会直接暴露出来.

 

 PS:

1.unittest是python的标准库

2.正常情况下可以单独执行一个函数(此时运行标志为:),如果不行重启下pycharm.

 

分类:

技术点:

相关文章:

  • 2021-12-31
  • 2021-09-27
  • 2021-11-07
  • 2021-11-07
  • 2021-11-07
  • 2022-01-16
  • 2021-11-04
猜你喜欢
  • 2021-09-27
  • 2021-12-21
  • 2021-11-17
  • 2021-11-17
  • 2021-11-17
  • 2021-11-17
相关资源
相似解决方案