summaryrefslogtreecommitdiff
path: root/scripts/cli/test_interfaces.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-02-09 13:02:40 +0100
committerChristian Poessinger <christian@poessinger.com>2020-02-09 13:02:40 +0100
commitc033c77b487caeb9505217232add571f362f7afe (patch)
tree3beac2494ced2d9d5029679d4a670c6e1dc4480b /scripts/cli/test_interfaces.py
parent6c2a6e0153ea36e5690661f0dec634322352f21a (diff)
downloadvyos-1x-c033c77b487caeb9505217232add571f362f7afe.tar.gz
vyos-1x-c033c77b487caeb9505217232add571f362f7afe.zip
all: delete session in tearDown()
Diffstat (limited to 'scripts/cli/test_interfaces.py')
-rwxr-xr-xscripts/cli/test_interfaces.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/cli/test_interfaces.py b/scripts/cli/test_interfaces.py
index ad8e653ce..1b775e1fe 100755
--- a/scripts/cli/test_interfaces.py
+++ b/scripts/cli/test_interfaces.py
@@ -35,6 +35,8 @@ class BasicInterfaceTest:
self.session.delete(self._base_path)
self.session.commit()
+ del self.session
+
def test_add_description(self):
""" Check if description can be added to interface """
for intf in self._interfaces: