diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:50 +0000 |
commit | def92d1b8e9d373e2f6f27c366d578d97d8960c6 (patch) | |
tree | 2ef34b9ad8bb9a9220e05d60352558b15f513894 /testing/mozbase/mozrunner | |
parent | Adding debian version 125.0.3-1. (diff) | |
download | firefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.tar.xz firefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.zip |
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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) |