From c033c77b487caeb9505217232add571f362f7afe Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 9 Feb 2020 13:02:40 +0100 Subject: all: delete session in tearDown() --- scripts/cli/test_system_nameserver.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/cli/test_system_nameserver.py') 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: -- cgit v1.2.3