ansible-community / antsibull-core

Library for tooling for building various things related to ansible
https://pypi.org/project/antsibull-core/
GNU General Public License v3.0
6 stars 6 forks source link

Make sure that app and lib contexts are cleaned up correctly in case of generator exit #161

Closed felixfontein closed 3 months ago

felixfontein commented 4 months ago

pylint complained about this (https://pylint.pycqa.org/en/latest/user_guide/messages/warning/contextmanager-generator-missing-cleanup.html), and this is clearly a real bug. So let's fix it :)

patchback[bot] commented 3 months ago

Backport to stable-2: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-2/b0bd73e5f506e0bc403ed979e6f90dc8dccdbba2/pr-161

Backported as https://github.com/ansible-community/antsibull-core/pull/162

🤖 @patchback I'm built with octomachinery and my source is open — https://github.com/sanitizers/patchback-github-app.

felixfontein commented 3 months ago

@gotmax23 thanks for reviewing this!