Closed cottsay closed 1 year ago
Patch coverage: 100.00%
and project coverage change: +0.14%
:tada:
Comparison is base (
32ef9ac
) 80.91% compared to head (c8162ad
) 81.06%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
As far as I understand, this is kind of a bugfix for Python < 3.8 versions, right?
I'd call it a bugfix for Python >= 3.8 actually. Earlier than that, we still can't reliably call close()
on the loop without hanging the process, but in Python >= 3.8, we seem to be able to do so and it also started producing a ResourceWarning
letting us know that we forgot to close the loop.
There should be no change in behavior for Python < 3.8.
In Python versions prior to 3.8, it appears that attempting to close the event loop after a Ctrl-C would reliably hang the process, which would need to be killed.
I've been unable to reproduce the behavior in any newer Python versions, so I think it's time to set the timeline for removing the hack entirely.
This should take care of the common ResourceWarning messages when using newer Python versions.
This change was already made in colcon/colcon-core#573 and colcon/colcon-core#581.