Fix python3 compatibility

Change-Id: I37dfbeeb15db151982b79b1f46e5aca157b7a29b
This commit is contained in:
Michal Arbet 2020-01-09 14:35:25 +01:00
parent b7a7423305
commit eceef09870

View File

@ -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()