Fix python3 compatibility
Change-Id: I37dfbeeb15db151982b79b1f46e5aca157b7a29b
This commit is contained in:
parent
b7a7423305
commit
eceef09870
@ -52,7 +52,7 @@ class BaseFreezerCliTest(base.BaseFreezerTest):
|
|||||||
|
|
||||||
def create_job(self, job_json):
|
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.write(json.dumps(job_json))
|
||||||
job_file.flush()
|
job_file.flush()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user