diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2020-12-05 20:05:52 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2020-12-05 20:05:52 -0500 |
| commit | 46a0656f7ae93c3de70e04af28aad3f7a971fda2 (patch) | |
| tree | 42d830e0c227c1f5877ec79d783aa0ad4377752b | |
| parent | 0114e2edc98ba05d70771c7cf1709172359831f0 (diff) | |
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>
| -rw-r--r-- | tests/topotests/lib/topogen.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/topotests/lib/topogen.py b/tests/topotests/lib/topogen.py index 7ae4223f72..eaf7f90479 100644 --- a/tests/topotests/lib/topogen.py +++ b/tests/topotests/lib/topogen.py @@ -1114,6 +1114,7 @@ def diagnose_env_linux(): logger.warning( "BGP topologies are still using exabgp version 3, expect failures" ) + p.close() # We want to catch all exceptions # pylint: disable=W0702 @@ -1122,6 +1123,7 @@ def diagnose_env_linux(): # After we logged the output to file, remove the handler. logger.removeHandler(fhandler) + fhandler.close() return ret |
