summaryrefslogtreecommitdiff
path: root/scripts/cli/test_system_nameserver.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/cli/test_system_nameserver.py')
-rwxr-xr-xscripts/cli/test_system_nameserver.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/cli/test_system_nameserver.py b/scripts/cli/test_system_nameserver.py
index eba8acd80..07fc9494b 100755
--- a/scripts/cli/test_system_nameserver.py
+++ b/scripts/cli/test_system_nameserver.py
@@ -37,10 +37,13 @@ class TestSystemNameServer(unittest.TestCase):
env = self.session.get_session_env()
self.config = Config(session_env=env)
+ def tearDown(self):
# Delete existing name servers
self.session.delete(base_path)
self.session.commit()
+ del self.session
+
def test_add_server(self):
""" Check if server is added to resolv.conf """
for s in test_servers: