When UI automation is executed, it passes, but an error will be reported: resourcewarning: enable tracemalloc to get the object allocation traceback
Solution:
Import: import warnings
Add: warnings simplefilter(‘ignore’, ResourceWarning)
When UI automation is executed, it passes, but an error will be reported: resourcewarning: enable tracemalloc to get the object allocation traceback
Solution:
Import: import warnings
Add: warnings simplefilter(‘ignore’, ResourceWarning)