[PATCH] tests: test_fst_config: convert FstLauncher to context manager

Jouni Malinen j at w1.fi
Wed Aug 25 06:52:15 PDT 2021

On Tue, May 11, 2021 at 09:35:47PM +0200, Johannes Berg wrote:
> Using __del__ for any kind of cleanup is not a good idea
> as it's not guaranteed to be called at any particular time,
> it's only called whenever the next garbage collect cycle
> kicks in.
> Use a context manager instead, which basically removes the
> need for the try/finally and fixes the reliance on __del__.

Thanks, applied.
Jouni Malinen                                            PGP id EFC895FA

More information about the Hostap mailing list