Python中UI执行时报错:Enable tracemalloc to get the object allocation traceback

  • 执行UI自动化时,通过了,但是会报错:ResourceWarning: Enable tracemalloc to get the object allocation traceback

Python中UI执行时报错:Enable tracemalloc to get the object allocation traceback

Python中UI执行时报错:Enable tracemalloc to get the object allocation traceback

 解决方法:

  1. 导入:import warnings
  2. 添加:warnings.simplefilter('ignore', ResourceWarning)

Python中UI执行时报错:Enable tracemalloc to get the object allocation traceback


 

上一篇:浏览器调试时禁用JS


下一篇:ffmpeg编译参数详解