diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-12-07 11:14:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-07 11:14:09 +0200 |
| commit | e8678e2c51a243ee05c5f78a242018d9757c3597 (patch) | |
| tree | 33f78beeecb5de3ef109dfb78c06c03f231ad437 | |
| parent | f017e7312e8f4efb6ab1ba9f951cd5ba3088cbec (diff) | |
| parent | 46a0656f7ae93c3de70e04af28aad3f7a971fda2 (diff) | |
Merge pull request #7679 from donaldsharp/topo_fixes
tests: Close some open handles
| -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 |
