diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:42 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:42 +0000 |
commit | da4c7e7ed675c3bf405668739c3012d140856109 (patch) | |
tree | cdd868dba063fecba609a1d819de271f0d51b23e /testing/mozbase/mozrunner | |
parent | Adding upstream version 125.0.3. (diff) | |
download | firefox-da4c7e7ed675c3bf405668739c3012d140856109.tar.xz firefox-da4c7e7ed675c3bf405668739c3012d140856109.zip |
Adding upstream version 126.0.upstream/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) |