From eceef09870cb90bb595c7aa51e130ae094240f07 Mon Sep 17 00:00:00 2001 From: Michal Arbet Date: Thu, 9 Jan 2020 14:35:25 +0100 Subject: [PATCH] Fix python3 compatibility Change-Id: I37dfbeeb15db151982b79b1f46e5aca157b7a29b --- freezer_tempest_plugin/tests/freezer/scenario/test_backups.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freezer_tempest_plugin/tests/freezer/scenario/test_backups.py b/freezer_tempest_plugin/tests/freezer/scenario/test_backups.py index cfd0feb..1f13c82 100644 --- a/freezer_tempest_plugin/tests/freezer/scenario/test_backups.py +++ b/freezer_tempest_plugin/tests/freezer/scenario/test_backups.py @@ -52,7 +52,7 @@ class BaseFreezerCliTest(base.BaseFreezerTest): def create_job(self, job_json): - with tempfile.NamedTemporaryFile(delete=False) as job_file: + with tempfile.NamedTemporaryFile(mode='w', delete=False) as job_file: job_file.write(json.dumps(job_json)) job_file.flush()