mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-08 21:48:08 +02:00
linux: integration-test: drop f-string without placeholder
This commit is contained in:
parent
131ab3a9d5
commit
23cf8c19f7
1 changed files with 2 additions and 2 deletions
|
|
@ -1159,7 +1159,7 @@ class Tests(dbusmock.DBusTestCase):
|
|||
def start_daemon(charge_threshold_value=None):
|
||||
upower_history_dir_override = tempfile.mkdtemp(prefix='upower-history-')
|
||||
if charge_threshold_value is not None:
|
||||
with open(os.path.join(upower_history_dir_override, f"charging-threshold-status") , 'w') as fp:
|
||||
with open(os.path.join(upower_history_dir_override, "charging-threshold-status") , 'w') as fp:
|
||||
fp.write(charge_threshold_value)
|
||||
|
||||
self.start_daemon(history_dir_override=upower_history_dir_override)
|
||||
|
|
@ -1235,7 +1235,7 @@ class Tests(dbusmock.DBusTestCase):
|
|||
def start_daemon(charge_threshold_value=None):
|
||||
upower_history_dir_override = tempfile.mkdtemp(prefix='upower-history-')
|
||||
if charge_threshold_value is not None:
|
||||
with open(os.path.join(upower_history_dir_override, f"charging-threshold-status") , 'w') as fp:
|
||||
with open(os.path.join(upower_history_dir_override, "charging-threshold-status") , 'w') as fp:
|
||||
fp.write(charge_threshold_value)
|
||||
|
||||
self.start_daemon(history_dir_override=upower_history_dir_override)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue