Commit 8b36f92a authored by Jelte Jansen's avatar Jelte Jansen
Browse files

[master] fix HOME error in bindctl_test

discussed on jabber
parent fd51de64
......@@ -511,10 +511,7 @@ class TestBindCmdInterpreter(unittest.TestCase):
def test_csv_file_dir(self):
# Checking default value
if "HOME" in os.environ:
home_dir = os.environ["HOME"]
else:
home_dir = pwd.getpwnam(getpass.getuser()).pw_dir
home_dir = pwd.getpwnam(getpass.getuser()).pw_dir
self.assertEqual(home_dir + os.sep + '.bind10' + os.sep,
bindcmd.BindCmdInterpreter().csv_file_dir)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment