diff options
Diffstat (limited to 'testing/mozbase/mozrunner')
-rw-r--r-- | testing/mozbase/mozrunner/mozrunner/devices/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/mozbase/mozrunner/mozrunner/devices/base.py b/testing/mozbase/mozrunner/mozrunner/devices/base.py index 6197b0d6ce..05eb61ca86 100644 --- a/testing/mozbase/mozrunner/mozrunner/devices/base.py +++ b/testing/mozbase/mozrunner/mozrunner/devices/base.py @@ -118,7 +118,7 @@ class Device(object): # The file will still be deleted at the end of the `with` block. # See the "Opening the temporary file again" paragraph in: # https://docs.python.org/3/library/tempfile.html#tempfile.NamedTemporaryFile - with tempfile.NamedTemporaryFile(delete=False) as new_profiles_ini: + with tempfile.NamedTemporaryFile(mode="w", delete=False) as new_profiles_ini: config.write(new_profiles_ini) self.backup_file(self.app_ctx.remote_profiles_ini) self.device.push(new_profiles_ini.name, self.app_ctx.remote_profiles_ini) |