mirror of
https://github.com/valitydev/yandex-tank.git
synced 2024-11-06 02:15:22 +00:00
py3 file write compatible
This commit is contained in:
parent
fa8ebc7154
commit
7c739661fb
@ -129,7 +129,7 @@ class Plugin(AbstractPlugin):
|
||||
# dump config contents into a file
|
||||
xmlfile = self.core.mkstemp(".xml", "monitoring_")
|
||||
self.core.add_artifact_file(xmlfile)
|
||||
with open(xmlfile, "w") as f:
|
||||
with open(xmlfile, "wb") as f: # output file should be in binary mode to support py3
|
||||
f.write(config_contents)
|
||||
self.config = xmlfile
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user