summaryrefslogtreecommitdiff
path: root/tests/unittests/test_data.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2015-01-21 15:35:56 -0500
committerBarry Warsaw <barry@python.org>2015-01-21 15:35:56 -0500
commitcccc0ff012d2e7b5c238609b22cc064b519e54a5 (patch)
tree1ca463be706ede0f0b3f0d967f67de79d13e5793 /tests/unittests/test_data.py
parent463d626ba53e54160f350d84831e1877b24f4024 (diff)
downloadvyos-cloud-init-cccc0ff012d2e7b5c238609b22cc064b519e54a5.tar.gz
vyos-cloud-init-cccc0ff012d2e7b5c238609b22cc064b519e54a5.zip
Fix file modes to be Python 2/3 compatible.
Diffstat (limited to 'tests/unittests/test_data.py')
-rw-r--r--tests/unittests/test_data.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unittests/test_data.py b/tests/unittests/test_data.py
index fd6bd8a1..5517f0b4 100644
--- a/tests/unittests/test_data.py
+++ b/tests/unittests/test_data.py
@@ -337,7 +337,7 @@ p: 1
mock_write = self.mocker.replace("cloudinit.util.write_file",
passthrough=False)
- mock_write(ci.paths.get_ipath("cloud_config"), "", 0600)
+ mock_write(ci.paths.get_ipath("cloud_config"), "", 0o600)
self.mocker.replay()
log_file = self.capture_log(logging.WARNING)