avocado-framework / avocado

Avocado is a set of tools and libraries to help with automated testing. One can call it a test framework with benefits. Native tests are written in Python and they follow the unittest pattern, but any executable can serve as a test.
https://avocado-framework.github.io/
Other
336 stars 335 forks source link

Modify the population file method #5934

Closed ut003460 closed 1 month ago

ut003460 commented 1 month ago

Use the with statement to automatically manage files. This can avoid manually opening and closing files