tests: Close some open handles

I accidently installed something that is telling me about
unlosed handles in the tests.  Let's clean them up.

<and yes I have no idea wtf I did>

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2020-12-05 20:05:52 -05:00
parent 0114e2edc9
commit 46a0656f7a

View File

@ -1114,6 +1114,7 @@ def diagnose_env_linux():
logger.warning( logger.warning(
"BGP topologies are still using exabgp version 3, expect failures" "BGP topologies are still using exabgp version 3, expect failures"
) )
p.close()
# We want to catch all exceptions # We want to catch all exceptions
# pylint: disable=W0702 # pylint: disable=W0702
@ -1122,6 +1123,7 @@ def diagnose_env_linux():
# After we logged the output to file, remove the handler. # After we logged the output to file, remove the handler.
logger.removeHandler(fhandler) logger.removeHandler(fhandler)
fhandler.close()
return ret return ret